@@ -1087,15 +1087,28 @@ public void testEnrich() {
10871087 processingCommand ("enrich _" + mode .name () + ":countries ON country_code" )
10881088 );
10891089
1090- expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed [foo*]" );
1091- expectError ("from a | enrich countries on foo with bar*" , "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]" );
1090+ expectError ("from a | enrich countries on foo* " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [foo*]" );
1091+ expectError ("from a | enrich countries on * " , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
1092+ expectError (
1093+ "from a | enrich countries on foo with bar*" ,
1094+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1095+ );
1096+ expectError ("from a | enrich countries on foo with *" , "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]" );
10921097 expectError (
10931098 "from a | enrich countries on foo with x = bar* " ,
1094- "Using wildcards [*] in ENRICH WITH projections is not allowed [bar*]"
1099+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [bar*]"
1100+ );
1101+ expectError (
1102+ "from a | enrich countries on foo with x = * " ,
1103+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10951104 );
10961105 expectError (
10971106 "from a | enrich countries on foo with x* = bar " ,
1098- "Using wildcards [*] in ENRICH WITH projections is not allowed [x*]"
1107+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [x*]"
1108+ );
1109+ expectError (
1110+ "from a | enrich countries on foo with * = bar " ,
1111+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [*]"
10991112 );
11001113 expectError (
11011114 "from a | enrich typo:countries on foo" ,
@@ -1979,7 +1992,7 @@ public void testParamInInvalidPosition() {
19791992 expectError (
19801993 "from idx1 | " + enrich ,
19811994 List .of (paramAsPattern ("f1" , pattern ), paramAsIdentifier ("f2" , "f.2" ), paramAsIdentifier ("f3" , "f.3*" )),
1982- "Using wildcards [*] in ENRICH WITH projections is not allowed [" + pattern + "]"
1995+ "Using wildcards [*] in ENRICH WITH projections is not allowed, found [" + pattern + "]"
19831996 );
19841997 expectError (
19851998 "from idx1 | " + enrich ,
0 commit comments