@@ -1080,15 +1080,28 @@ public void testEnrich() {
10801080 processingCommand ("enrich _" + mode .name () + ":countries ON country_code" )
10811081 );
10821082
1083- expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed [foo*]" );
1084- expectError ("from a | enrich countries on foo with bar*" , "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]" );
1083+ expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [foo*]" );
1084+ expectError ("from a | enrich countries on * " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
1085+ expectError (
1086+ "from a | enrich countries on foo with bar*" ,
1087+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1088+ );
1089+ expectError ("from a | enrich countries on foo with *" , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
10851090 expectError (
10861091 "from a | enrich countries on foo with x = bar* " ,
1087- "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]"
1092+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1093+ );
1094+ expectError (
1095+ "from a | enrich countries on foo with x = * " ,
1096+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10881097 );
10891098 expectError (
10901099 "from a | enrich countries on foo with x* = bar " ,
1091- "Using wildcards [*] in ENRICH WITH projections is not allowed [x*]"
1100+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [x*]"
1101+ );
1102+ expectError (
1103+ "from a | enrich countries on foo with * = bar " ,
1104+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10921105 );
10931106 expectError (
10941107 "from a | enrich typo:countries on foo" ,
@@ -1973,7 +1986,7 @@ public void testParamInInvalidPosition() {
19731986 expectError (
19741987 "from idx1 | " + enrich ,
19751988 List .of (paramAsPattern ("f1" , pattern ), paramAsIdentifier ("f2" , "f.2" ), paramAsIdentifier ("f3" , "f.3*" )),
1976- "Using wildcards [*] in ENRICH WITH projections is not allowed [" + pattern + "]"
1989+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [" + pattern + "]"
19771990 );
19781991 expectError (
19791992 "from idx1 | " + enrich ,
0 commit comments