Package io.squashql.query.database
Class BigQueryQueryRewriter
java.lang.Object
io.squashql.query.database.BigQueryQueryRewriter
- All Implemented Interfaces:
QueryRewriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbinaryOperation(BinaryOperator operator, String leftOperand, String rightOperand) escapeAlias(String alias) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.squashql.query.database.QueryRewriter
_select, aliasOrFullExpression, cteName, groupBy, rollup, select
-
Constructor Details
-
BigQueryQueryRewriter
public BigQueryQueryRewriter()
-
-
Method Details
-
functionExpression
- Specified by:
functionExpressionin interfaceQueryRewriter
-
fieldName
- Specified by:
fieldNamein interfaceQueryRewriter
-
tableName
- Specified by:
tableNamein interfaceQueryRewriter
-
escapeAlias
See https://cloud.google.com/bigquery/docs/schemas#column_names. A column name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and it must start with a letter or underscore. The maximum column name length is 300 characters. FIXME must used a regex instead to replace incorrect characters.- Specified by:
escapeAliasin interfaceQueryRewriter
-
usePartialRollupSyntax
public boolean usePartialRollupSyntax()- Specified by:
usePartialRollupSyntaxin interfaceQueryRewriter
-
escapeSingleQuote
- Specified by:
escapeSingleQuotein interfaceQueryRewriter
-
grouping
- Specified by:
groupingin interfaceQueryRewriter
-
binaryOperation
- Specified by:
binaryOperationin interfaceQueryRewriter
-