org.apache.calcite.sql.parser.SqlParserImplFactory Java Examples
The following examples show how to use
org.apache.calcite.sql.parser.SqlParserImplFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ParserConfig.java From dremio-oss with Apache License 2.0 | 6 votes |
@Override public SqlParserImplFactory parserFactory() { if (supportFullyQualifiedProjections) { return ParserImpl.FACTORY; } return ParserWithCompoundIdConverter.FACTORY; }
Example #2
Source File: FlinkSqlParserFactories.java From flink with Apache License 2.0 | 5 votes |
public static SqlParserImplFactory create(SqlConformance conformance) { if (conformance == FlinkSqlConformance.HIVE) { return FlinkHiveSqlParserImpl.FACTORY; } else { return FlinkSqlParserImpl.FACTORY; } }
Example #3
Source File: FlinkDDLDataTypeTest.java From flink with Apache License 2.0 | 5 votes |
private static SqlParser.Config createParserConfig(Map<String, Object> options) { return SqlParser.configBuilder() .setQuoting((Quoting) options.get("quoting")) .setUnquotedCasing((Casing) options.get("unquotedCasing")) .setQuotedCasing((Casing) options.get("quotedCasing")) .setConformance((SqlConformance) options.get("conformance")) .setCaseSensitive((boolean) options.get("caseSensitive")) .setParserFactory((SqlParserImplFactory) options.get("parserFactory")) .build(); }
Example #4
Source File: CalcitePrepareImpl.java From calcite with Apache License 2.0 | 5 votes |
@Override public void executeDdl(Context context, SqlNode node) { final CalciteConnectionConfig config = context.config(); final SqlParserImplFactory parserFactory = config.parserFactory(SqlParserImplFactory.class, SqlParserImpl.FACTORY); final DdlExecutor ddlExecutor = parserFactory.getDdlExecutor(); ddlExecutor.executeDdl(context, node); }
Example #5
Source File: DrillParserConfig.java From Bats with Apache License 2.0 | 4 votes |
@Override public SqlParserImplFactory parserFactory() { return DrillParserWithCompoundIdConverter.FACTORY; }
Example #6
Source File: FlinkSqlParserImplTest.java From flink with Apache License 2.0 | 4 votes |
@Override protected SqlParserImplFactory parserImplFactory() { return FlinkSqlParserImpl.FACTORY; }
Example #7
Source File: FlinkHiveSqlParserImplTest.java From flink with Apache License 2.0 | 4 votes |
@Override protected SqlParserImplFactory parserImplFactory() { return FlinkHiveSqlParserImpl.FACTORY; }
Example #8
Source File: FlinkSqlParserImplTest.java From flink with Apache License 2.0 | 4 votes |
@Override protected SqlParserImplFactory parserImplFactory() { return FlinkSqlParserImpl.FACTORY; }
Example #9
Source File: BabelParserTest.java From calcite with Apache License 2.0 | 4 votes |
@Override protected SqlParserImplFactory parserImplFactory() { return SqlBabelParserImpl.FACTORY; }
Example #10
Source File: ServerParserTest.java From calcite with Apache License 2.0 | 4 votes |
@Override protected SqlParserImplFactory parserImplFactory() { return SqlDdlParserImpl.FACTORY; }
Example #11
Source File: ExtensionSqlParserTest.java From calcite with Apache License 2.0 | 4 votes |
@Override protected SqlParserImplFactory parserImplFactory() { return ExtensionSqlParserImpl.FACTORY; }