Class BeamBigQuerySqlDialect

java.lang.Object
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.dialect.BigQuerySqlDialect
org.apache.beam.sdk.extensions.sql.meta.provider.bigquery.BeamBigQuerySqlDialect

public class BeamBigQuerySqlDialect extends org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.dialect.BigQuerySqlDialect
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect

    org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.CalendarPolicy, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.Context, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.DatabaseProduct, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.FakeUtil
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect
     
    static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.Context
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect

    BUILT_IN_OPERATORS_LIST, EMPTY_CONTEXT, identifierEndQuoteString, identifierEscapedQuote, identifierQuoteString, literalEndQuoteString, literalEscapedQuote, literalQuoteString, LOGGER, nullCollation
  • Constructor Summary

    Constructors
    Constructor
    Description
    BeamBigQuerySqlDialect(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.Context context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    unparseCall(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlWriter writer, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlCall call, int leftPrec, int rightPrec)
     
    void
    unparseDateTimeLiteral(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlWriter writer, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlAbstractDateTimeLiteral literal, int leftPrec, int rightPrec)
     
    void
    unparseSqlIntervalLiteral(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlWriter writer, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlIntervalLiteral literal, int leftPrec, int rightPrec)
    BigQuery interval syntax: INTERVAL int64 time_unit.

    Methods inherited from class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.dialect.BigQuerySqlDialect

    configureParser, emulateNullDirection, getCastSpec, identifierNeedsQuote, supportsAggregateFunctionFilter, supportsAliasedValues, supportsImplicitTypeCoercion, supportsNestedAggregations, unparseOffsetFetch, unparseSqlIntervalQualifier

    Methods inherited from class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect

    allowsAs, configureParser, containsNonAscii, create, defaultNullDirection, emulateJoinTypeForCrossJoin, emulateNullDirectionWithIsNull, getCalendarPolicy, getConformance, getDatabaseProduct, getNullCollation, getProduct, getQuotedCasing, getQuoting, getSingleRowTableName, getTypeSystem, getUnquotedCasing, hasImplicitTableAlias, isCaseSensitive, quoteIdentifier, quoteIdentifier, quoteStringLiteral, quoteStringLiteral, quoteStringLiteralUnicode, quoteTimestampLiteral, requiresAliasForFromItems, rewriteSingleValueExpr, supportsAggregateFunction, supportsCharSet, supportsDataType, supportsFunction, supportsGroupByWithCube, supportsGroupByWithRollup, supportsJoinType, supportsOffsetFetch, supportsWindowFunctions, unparseFetchUsingAnsi, unparseFetchUsingLimit, unparseLimit, unparseOffset, unparseSqlDatetimeArithmetic, unparseTableScanHints, unparseTopN, unquoteStringLiteral

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_CONTEXT

      public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.Context DEFAULT_CONTEXT
    • DEFAULT

      public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect DEFAULT
    • DOUBLE_POSITIVE_INF_WRAPPER

      public static final String DOUBLE_POSITIVE_INF_WRAPPER
      See Also:
    • DOUBLE_NEGATIVE_INF_WRAPPER

      public static final String DOUBLE_NEGATIVE_INF_WRAPPER
      See Also:
    • DOUBLE_NAN_WRAPPER

      public static final String DOUBLE_NAN_WRAPPER
      See Also:
    • NUMERIC_LITERAL_WRAPPER

      public static final String NUMERIC_LITERAL_WRAPPER
      See Also:
    • IN_ARRAY_OPERATOR

      public static final String IN_ARRAY_OPERATOR
      See Also:
  • Constructor Details

    • BeamBigQuerySqlDialect

      public BeamBigQuerySqlDialect(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect.Context context)
  • Method Details

    • quoteIdentifier

      public String quoteIdentifier(String val)
      Overrides:
      quoteIdentifier in class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect
    • unparseCall

      public void unparseCall(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlWriter writer, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlCall call, int leftPrec, int rightPrec)
      Overrides:
      unparseCall in class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.dialect.BigQuerySqlDialect
    • unparseSqlIntervalLiteral

      public void unparseSqlIntervalLiteral(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlWriter writer, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlIntervalLiteral literal, int leftPrec, int rightPrec)
      BigQuery interval syntax: INTERVAL int64 time_unit.
      Overrides:
      unparseSqlIntervalLiteral in class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.dialect.BigQuerySqlDialect
    • unparseDateTimeLiteral

      public void unparseDateTimeLiteral(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlWriter writer, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlAbstractDateTimeLiteral literal, int leftPrec, int rightPrec)
      Overrides:
      unparseDateTimeLiteral in class org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlDialect