@@ -1081,15 +1081,28 @@ public void testEnrich() {
1081
1081
processingCommand ("enrich _" + mode .name () + ":countries ON country_code" )
1082
1082
);
1083
1083
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 [*]" );
1086
1091
expectError (
1087
1092
"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 [*]"
1089
1098
);
1090
1099
expectError (
1091
1100
"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 [*]"
1093
1106
);
1094
1107
expectError (
1095
1108
"from a | enrich typo:countries on foo" ,
@@ -1973,7 +1986,7 @@ public void testParamInInvalidPosition() {
1973
1986
expectError (
1974
1987
"from idx1 | " + enrich ,
1975
1988
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 + "]"
1977
1990
);
1978
1991
expectError (
1979
1992
"from idx1 | " + enrich ,
0 commit comments