org.apache.calcite.sql.SqlJdbcFunctionCall Java Examples
The following examples show how to use
org.apache.calcite.sql.SqlJdbcFunctionCall.
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: QuarkMetaImpl.java From quark with Apache License 2.0 | 6 votes |
private ImmutableMap.Builder<DatabaseProperty, Object> addProperty( ImmutableMap.Builder<DatabaseProperty, Object> builder, DatabaseProperty p) { switch (p) { case GET_S_Q_L_KEYWORDS: return builder.put(p, SqlParser.create("").getMetadata().getJdbcKeywords()); case GET_NUMERIC_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getNumericFunctions()); case GET_STRING_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getStringFunctions()); case GET_SYSTEM_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getSystemFunctions()); case GET_TIME_DATE_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getTimeDateFunctions()); default: return builder; } }
Example #2
Source File: CalciteMetaImpl.java From calcite with Apache License 2.0 | 6 votes |
private ImmutableMap.Builder<DatabaseProperty, Object> addProperty( ImmutableMap.Builder<DatabaseProperty, Object> builder, DatabaseProperty p) { switch (p) { case GET_S_Q_L_KEYWORDS: return builder.put(p, SqlParser.create("").getMetadata().getJdbcKeywords()); case GET_NUMERIC_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getNumericFunctions()); case GET_STRING_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getStringFunctions()); case GET_SYSTEM_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getSystemFunctions()); case GET_TIME_DATE_FUNCTIONS: return builder.put(p, SqlJdbcFunctionCall.getTimeDateFunctions()); default: return builder; } }
Example #3
Source File: StandardConvertletTable.java From Bats with Apache License 2.0 | 5 votes |
public RexNode convertJdbc( SqlRexContext cx, SqlJdbcFunctionCall op, SqlCall call) { // Yuck!! The function definition contains arguments! // TODO: adopt a more conventional definition/instance structure final SqlCall convertedCall = op.getLookupCall(); return cx.convertExpression(convertedCall); }
Example #4
Source File: StandardConvertletTable.java From calcite with Apache License 2.0 | 5 votes |
public RexNode convertJdbc( SqlRexContext cx, SqlJdbcFunctionCall op, SqlCall call) { // Yuck!! The function definition contains arguments! // TODO: adopt a more conventional definition/instance structure final SqlCall convertedCall = op.getLookupCall(); return cx.convertExpression(convertedCall); }