fix(iris): disable bracket identifier scanning in ranges

This commit is contained in:
zipg authored and GitHub committed 2026-10-01 22:33:14 +08:00
1 parent af9fa80070
commit b6049d80d0
6 files changed
+32 -1

No files matched your search

@@ -214,7 +214,8 @@ function splitElasticsearchRestRequestRanges(sql: string): RawStatement[] | unde
type QuoteState = "none" | "single" | "double" | "backtick" | "bracket" | "dollar";
function usesBracketIdentifierQuotes(databaseType?: DatabaseType): boolean {
return databaseType !== "doris" && databaseType !== "starrocks";
// IRIS uses `[` as its Contains operator, with no matching `]`.
return databaseType !== "doris" && databaseType !== "starrocks" && databaseType !== "iris";
}
const COMMON_SOFT_STATEMENT_START_KEYWORDS = [