@@ -1081,15 +1081,28 @@ public void testEnrich() {
10811081 processingCommand ("enrich _" + mode .name () + ":countries ON country_code" )
10821082 );
10831083
1084- expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed [foo*]" );
1085- expectError ("from a | enrich countries on foo with bar*" , "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]" );
1084+ expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [foo*]" );
1085+ expectError ("from a | enrich countries on * " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
1086+ expectError (
1087+ "from a | enrich countries on foo with bar*" ,
1088+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1089+ );
1090+ expectError ("from a | enrich countries on foo with *" , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
10861091 expectError (
10871092 "from a | enrich countries on foo with x = bar* " ,
1088- "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]"
1093+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1094+ );
1095+ expectError (
1096+ "from a | enrich countries on foo with x = * " ,
1097+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10891098 );
10901099 expectError (
10911100 "from a | enrich countries on foo with x* = bar " ,
1092- "Using wildcards [*] in ENRICH WITH projections is not allowed [x*]"
1101+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [x*]"
1102+ );
1103+ expectError (
1104+ "from a | enrich countries on foo with * = bar " ,
1105+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10931106 );
10941107 expectError (
10951108 "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