-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DRAFT: LOAD/NULLIFY golden tests #141821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRAFT: LOAD/NULLIFY golden tests #141821
Changes from all commits
5036b99
84976f5
3410841
4066eb4
54390d1
5635f49
84a15de
06d4661
2d87993
f82a95a
c4cec77
a0eace3
5fec441
a976a88
6a98ff7
dd3ef6b
e0b20db
6aeccac
d47e18b
465826c
4c8ae63
eefa9cf
7f69234
ac35237
66cb1ed
221c4fa
9aaca40
7a3b810
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -371,6 +371,9 @@ protected void doTest() throws Throwable { | |
| } | ||
|
|
||
| protected final void doTest(String query) throws Throwable { | ||
| if (query.toUpperCase().startsWith("SET") == false) { | ||
| query = "SET unmapped_fields=\"load\"; " + query; | ||
| } | ||
|
Comment on lines
+374
to
+376
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leftover to remove before this can be merged. |
||
| RequestObjectBuilder builder = new RequestObjectBuilder(randomFrom(XContentType.values())); | ||
|
|
||
| if (query.toUpperCase(Locale.ROOT).contains("LOOKUP_\uD83D\uDC14")) { | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also looks like an ad-hoc change; this csv was used for old tests and should probably be reverted. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| alias_integer,boolean,byte,constant_keyword-foo,date,date_nanos,double,float,half_float,scaled_float,integer,ip,keyword,long,unsigned_long,short,text,version,wildcard,semantic_text,dense_vector | ||
| boolean:boolean,byte:byte,constant_keyword-foo:keyword,date:date,date_nanos:date_nanos,double:double,float:float,half_float:half_float,scaled_float:scaled_float,integer:integer,ip:ip,keyword:keyword,long:long,unsigned_long:unsigned_long,short:short,text:text,version:version,wildcard:keyword | ||
| true,1,foo,2024-01-01T00:00:00.000Z,2024-01-01T00:00:00.000000001Z,1.1,1.1,1.1,1.1,1,127.0.0.1,key1,100,100,10,text1,1.0.0,wild1 | ||
| false,2,foo,2024-01-02T00:00:00.000Z,2024-01-02T00:00:00.000000002Z,2.2,2.2,2.2,2.2,2,127.0.0.2,key2,200,200,20,text2,2.0.0,wild2 | ||
| true,3,foo,2024-01-03T00:00:00.000Z,2024-01-03T00:00:00.000000003Z,3.3,3.3,3.3,3.3,3,127.0.0.3,key3,300,300,30,text3,3.0.0,wild3 | ||
| false,4,foo,2024-01-04T00:00:00.000Z,2024-01-04T00:00:00.000000004Z,4.4,4.4,4.4,4.4,4,127.0.0.4,key4,400,400,40,text4,4.0.0,wild4 | ||
| true,5,foo,2024-01-05T00:00:00.000Z,2024-01-05T00:00:00.000000005Z,5.5,5.5,5.5,5.5,5,127.0.0.5,key5,500,500,50,text5,5.0.0,wild5 |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drive-by, but this draft is mentioned in #141911 under "spec tests for -> TS", but I don't see any queries with |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -845,6 +845,11 @@ public enum Cap { | |
| */ | ||
| SOURCE_FIELD_MAPPING, | ||
|
|
||
| /** | ||
| * Support for field aliases in mappings. | ||
| */ | ||
| FIELD_ALIAS_SUPPORT, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we adding support for this in this PR? That should be an existing ability, no?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not in |
||
|
|
||
| /** | ||
| * Allow filter per individual aggregation. | ||
| */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change; should this be committed?