Skip to content

Commit 0103e08

Browse files
authored
Merge pull request #1565 from ydb-platform/enable_antlr4_parser
enable_antlr4_parser in experiment tests
2 parents b774138 + 15b99ae commit 0103e08

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
YDB_LOCAL_SURVIVE_RESTART: true
123123
YDB_USE_IN_MEMORY_PDISKS: true
124124
YDB_TABLE_ENABLE_PREPARED_DDL: true
125-
YDB_FEATURE_FLAGS: enable_topic_service_tx
125+
YDB_FEATURE_FLAGS: enable_topic_service_tx,enable_antlr4_parser
126126
YDB_ENABLE_COLUMN_TABLES: true
127127
options: '-h localhost'
128128
env:

tests/integration/table_scan_error_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"context"
88
"fmt"
99
"os"
10+
"strings"
1011
"testing"
1112

1213
"github.com/stretchr/testify/require"
@@ -74,5 +75,11 @@ func TestIssue847ScanError(t *testing.T) {
7475
return res.Err()
7576
}, table.WithTxSettings(table.TxSettings(table.WithSnapshotReadOnly())))
7677
require.Error(t, err)
77-
require.ErrorContains(t, err, "Unexpected token 'SELICT'")
78+
if !strings.Contains(
79+
err.Error(), "Unexpected token 'SELICT'", /*antlr3 parser*/
80+
) && !strings.Contains(
81+
err.Error(), "mismatched input 'SELICT'", /*antlr4 parser*/
82+
) {
83+
t.Fail()
84+
}
7885
}

0 commit comments

Comments
 (0)