forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for casting on the field type and allowing multi-index…
… queries with different types
- Loading branch information
1 parent
edf9838
commit 347b3ce
Showing
11 changed files
with
1,120 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
x-pack/plugin/esql/qa/testFixtures/src/main/resources/employees_incompatible.csv
Large diffs are not rendered by default.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
x-pack/plugin/esql/qa/testFixtures/src/main/resources/mapping-default-incompatible.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"properties" : { | ||
"emp_no" : { | ||
"type" : "long" | ||
}, | ||
"first_name" : { | ||
"type" : "text" | ||
}, | ||
"last_name" : { | ||
"type" : "text" | ||
}, | ||
"gender" : { | ||
"type" : "text" | ||
}, | ||
"birth_date": { | ||
"type" : "date" | ||
}, | ||
"hire_date": { | ||
"type" : "date" | ||
}, | ||
"salary" : { | ||
"type" : "long" | ||
}, | ||
"languages" : { | ||
"type" : "byte", | ||
"fields": { | ||
"long": { | ||
"type": "long" | ||
}, | ||
"short": { | ||
"type": "short" | ||
}, | ||
"int": { | ||
"type": "integer" | ||
} | ||
} | ||
}, | ||
"height": { | ||
"type" : "float", | ||
"fields" : { | ||
"double" : { | ||
"type" : "double" | ||
}, | ||
"scaled_float": { | ||
"type": "scaled_float", | ||
"scaling_factor": 100 | ||
}, | ||
"half_float": { | ||
"type": "half_float" | ||
} | ||
} | ||
}, | ||
"still_hired": { | ||
"type" : "keyword" | ||
}, | ||
"avg_worked_seconds" : { | ||
"type" : "unsigned_long" | ||
}, | ||
"job_positions" : { | ||
"type" : "text" | ||
}, | ||
"is_rehired" : { | ||
"type" : "text" | ||
}, | ||
"salary_change": { | ||
"type": "float", | ||
"fields": { | ||
"int": { | ||
"type": "integer" | ||
}, | ||
"long": { | ||
"type": "long" | ||
}, | ||
"keyword": { | ||
"type" : "keyword" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp
Large diffs are not rendered by default.
Oops, something went wrong.
1,694 changes: 853 additions & 841 deletions
1,694
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters