(improvement)(headless) remove null collation config (#622)

This commit is contained in:
jipeli
2024-01-12 18:14:47 +08:00
committed by GitHub
parent dcc1f26542
commit e29ecec0c9

View File

@@ -2,7 +2,6 @@ package com.tencent.supersonic.headless.core.parser.calcite.schema;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
import org.apache.calcite.avatica.util.Casing; import org.apache.calcite.avatica.util.Casing;
import org.apache.calcite.config.NullCollation;
import org.apache.calcite.sql.SqlDialect; import org.apache.calcite.sql.SqlDialect;
import org.apache.calcite.sql.SqlIntervalLiteral; import org.apache.calcite.sql.SqlIntervalLiteral;
import org.apache.calcite.sql.SqlNode; import org.apache.calcite.sql.SqlNode;
@@ -20,7 +19,6 @@ public class SemanticSqlDialect extends SqlDialect {
.withLiteralQuoteString("'") .withLiteralQuoteString("'")
.withLiteralEscapedQuoteString("''") .withLiteralEscapedQuoteString("''")
.withIdentifierQuoteString("`") .withIdentifierQuoteString("`")
.withNullCollation(NullCollation.LOW)
.withUnquotedCasing(Casing.UNCHANGED) .withUnquotedCasing(Casing.UNCHANGED)
.withQuotedCasing(Casing.UNCHANGED) .withQuotedCasing(Casing.UNCHANGED)
.withCaseSensitive(false); .withCaseSensitive(false);