Skip to content

Commit dffc12a

Browse files
authored
Enabled by default enable_antlr4_parser feature-flag for ydb tests and local-ydb docker image (#11880)
1 parent 661f6de commit dffc12a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ydb/tests/fq/s3/test_ydb_over_fq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def test_execute_data_query_error(self, kikimr, s3, client, unique_prefix, yq_ve
292292
with session.transaction() as tx:
293293
assert_that(
294294
calling(tx.execute).with_args("BAD QUERY"),
295-
raises(ydb.issues.InternalError, "Unexpected token .* : cannot match to any predicted input"),
295+
raises(ydb.issues.InternalError, "(mismatched input .* expecting)|(Unexpected token .* : cannot match to any predicted input)"),
296296
)
297297
with session.transaction() as tx:
298298
query = "select * from {}{}".format("bindings." if yq_version == "v1" else "", "WRONG_BIND")

ydb/tests/fq/yds/test_select_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_compile_error(self, client, yq_version):
118118
assert (
119119
"Query failed with code " + ("ABORTED" if yq_version == "v1" else "GENERIC_ERROR") in describe_string
120120
), describe_string
121-
assert "Unexpected token" in describe_string, describe_string
121+
assert "extraneous input" in describe_string or "Unexpected token" in describe_string, describe_string
122122
# Failed to parse query is added in YQv1 only
123123
if yq_version == "v1":
124124
assert "Failed to parse query" in describe_string, describe_string

ydb/tests/library/harness/resources/default_yaml.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ feature_flags:
160160
enable_persistent_query_stats: true
161161
enable_scheme_transactions_at_scheme_shard: true
162162
enable_mvcc_snapshot_reads: true
163+
enable_antlr4_parser: true
163164
kqpconfig:
164165
settings:
165166
- name: "_ResultRowsLimit"

0 commit comments

Comments
 (0)