@@ -1074,15 +1074,28 @@ public void testEnrich() {
10741074 processingCommand ("enrich _" + mode .name () + ":countries ON country_code" )
10751075 );
10761076
1077- expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed [foo*]" );
1078- expectError ("from a | enrich countries on foo with bar*" , "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]" );
1077+ expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [foo*]" );
1078+ expectError ("from a | enrich countries on * " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
1079+ expectError (
1080+ "from a | enrich countries on foo with bar*" ,
1081+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1082+ );
1083+ expectError ("from a | enrich countries on foo with *" , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
10791084 expectError (
10801085 "from a | enrich countries on foo with x = bar* " ,
1081- "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]"
1086+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1087+ );
1088+ expectError (
1089+ "from a | enrich countries on foo with x = * " ,
1090+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10821091 );
10831092 expectError (
10841093 "from a | enrich countries on foo with x* = bar " ,
1085- "Using wildcards [*] in ENRICH WITH projections is not allowed [x*]"
1094+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [x*]"
1095+ );
1096+ expectError (
1097+ "from a | enrich countries on foo with * = bar " ,
1098+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10861099 );
10871100 expectError (
10881101 "from a | enrich typo:countries on foo" ,
@@ -1967,7 +1980,7 @@ public void testParamInInvalidPosition() {
19671980 expectError (
19681981 "from idx1 | " + enrich ,
19691982 List .of (paramAsPattern ("f1" , pattern ), paramAsIdentifier ("f2" , "f.2" ), paramAsIdentifier ("f3" , "f.3*" )),
1970- "Using wildcards [*] in ENRICH WITH projections is not allowed [" + pattern + "]"
1983+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [" + pattern + "]"
19711984 );
19721985 expectError (
19731986 "from idx1 | " + enrich ,
0 commit comments