Package io.squashql.query.database
Class BigQueryEngine
java.lang.Object
io.squashql.query.database.AQueryEngine<BigQueryDatastore>
io.squashql.query.database.BigQueryEngine
- All Implemented Interfaces:
QueryEngine<BigQueryDatastore>
-
Field Summary
FieldsModifier and TypeFieldDescriptionhttps://cloud.google.com/bigquery/docs/reference/standard-sql/statistical_aggregate_functions#covar_samp https://cloud.google.com/bigquery/docs/reference/standard-sql/aggregate_functionsFields inherited from class io.squashql.query.database.AQueryEngine
datastore, fieldSupplier, queryRewriterFields inherited from interface io.squashql.query.database.QueryEngine
GRAND_TOTAL, TOTAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateSqlStatement(DatabaseQuery query) executeRawSql(String sql) static ObjectgetTypeValue(com.google.cloud.bigquery.FieldValueList fieldValues, com.google.cloud.bigquery.Schema schema, int index) Gets the value with the correct type, otherwise everything is read as String.protected TablepostProcessDataset(Table input, DatabaseQuery query) protected TableretrieveAggregates(DatabaseQuery query, String sql) Methods inherited from class io.squashql.query.database.AQueryEngine
createFieldSupplier, datastore, execute, getFieldSupplier, queryRewriter, transformToColumnFormat, transformToRowFormat
-
Field Details
-
SUPPORTED_AGGREGATION_FUNCTIONS
https://cloud.google.com/bigquery/docs/reference/standard-sql/statistical_aggregate_functions#covar_samp https://cloud.google.com/bigquery/docs/reference/standard-sql/aggregate_functions
-
-
Constructor Details
-
BigQueryEngine
-
-
Method Details
-
createSqlStatement
- Overrides:
createSqlStatementin classAQueryEngine<BigQueryDatastore>
-
postProcessDataset
- Overrides:
postProcessDatasetin classAQueryEngine<BigQueryDatastore>
-
retrieveAggregates
- Specified by:
retrieveAggregatesin classAQueryEngine<BigQueryDatastore>
-
executeRawSql
-
getTypeValue
public static Object getTypeValue(com.google.cloud.bigquery.FieldValueList fieldValues, com.google.cloud.bigquery.Schema schema, int index) Gets the value with the correct type, otherwise everything is read as String. -
supportedAggregationFunctions
-