@@ -1064,15 +1064,28 @@ public void testEnrich() {
10641064 processingCommand ("enrich _" + mode .name () + ":countries ON country_code" )
10651065 );
10661066
1067- expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed [foo*]" );
1068- expectError ("from a | enrich countries on foo with bar*" , "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]" );
1067+ expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [foo*]" );
1068+ expectError ("from a | enrich countries on * " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
1069+ expectError (
1070+ "from a | enrich countries on foo with bar*" ,
1071+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1072+ );
1073+ expectError ("from a | enrich countries on foo with *" , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
10691074 expectError (
10701075 "from a | enrich countries on foo with x = bar* " ,
1071- "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]"
1076+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1077+ );
1078+ expectError (
1079+ "from a | enrich countries on foo with x = * " ,
1080+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10721081 );
10731082 expectError (
10741083 "from a | enrich countries on foo with x* = bar " ,
1075- "Using wildcards [*] in ENRICH WITH projections is not allowed [x*]"
1084+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [x*]"
1085+ );
1086+ expectError (
1087+ "from a | enrich countries on foo with * = bar " ,
1088+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10761089 );
10771090 expectError (
10781091 "from a | enrich typo:countries on foo" ,
@@ -1970,7 +1983,7 @@ public void testParamInInvalidPosition() {
19701983 expectError (
19711984 "from idx1 | " + enrich ,
19721985 List .of (paramAsPattern ("f1" , pattern ), paramAsIdentifier ("f2" , "f.2" ), paramAsIdentifier ("f3" , "f.3*" )),
1973- "Using wildcards [*] in ENRICH WITH projections is not allowed [" + pattern + "]"
1986+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [" + pattern + "]"
19741987 );
19751988 expectError (
19761989 "from idx1 | " + enrich ,
0 commit comments