-
Notifications
You must be signed in to change notification settings - Fork 994
Description
What kind an issue is this?
- Bug report. If you’ve found a bug, please provide a code snippet or test to reproduce it below.
The easier it is to track down the bug, the faster it is solved.Feature Request. Start by telling us what problem you’re trying to solve.
Often a solution already exists! Don’t send pull requests to implement new features without
first getting our support. Sometimes we leave features out on purpose to keep the project small.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Feature description
Hi, maybe it makes sense to allow customizing the mapping in the creation of an index?
For example, when a table is created from SparkSql and the index does not exist, there could be a configuration option that allows custom creation of the index like this:
CREATE TABLE testMapping (id int, name string, surname string) USING org.elasticsearch.spark.sql OPTIONS ( es.resource 'testMapping', es.mapping.definition '{ "settings": { "number_of_shards": 3, "number_of_replicas": 2 }, "mappings": { "properties":{ "id": { "type": "integer" } } } }', es.nodes '127.0.0.1', es.port '9200');
insert into testMapping values (1, 'elastic', 'elastic-hadoop');
In my opinion, it does not have a great impact on the code and can make the solution much more flexible. The code could be something like this: Custom mapping feature
Thank you very much
Activity