Package io.squashql.query.database
Class ClickHouseQueryEngine
java.lang.Object
io.squashql.query.database.AQueryEngine<ClickHouseDatastore>
io.squashql.query.database.ClickHouseQueryEngine
- All Implemented Interfaces:
QueryEngine<ClickHouseDatastore>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.clickhouse.client.ClickHouseNodesaggregate functions NOTE: there is more but only a subset is proposed here.Fields 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 TypeMethodDescriptionexecuteRawSql(String sql) static ObjectgetValue(com.clickhouse.data.ClickHouseRecord record, int index, List<com.clickhouse.data.ClickHouseColumn> columns) Gets the value with the correct type.protected TableretrieveAggregates(DatabaseQuery query, String sql) Methods inherited from class io.squashql.query.database.AQueryEngine
createFieldSupplier, createSqlStatement, datastore, execute, getFieldSupplier, postProcessDataset, queryRewriter, transformToColumnFormat, transformToRowFormat
-
Field Details
-
SUPPORTED_AGGREGATION_FUNCTIONS
aggregate functions NOTE: there is more but only a subset is proposed here. -
nodes
protected final com.clickhouse.client.ClickHouseNodes nodes
-
-
Constructor Details
-
ClickHouseQueryEngine
-
-
Method Details
-
retrieveAggregates
- Specified by:
retrieveAggregatesin classAQueryEngine<ClickHouseDatastore>
-
executeRawSql
-
getValue
public static Object getValue(com.clickhouse.data.ClickHouseRecord record, int index, List<com.clickhouse.data.ClickHouseColumn> columns) Gets the value with the correct type. We can't directly callClickHouseValue.asObject()because in some cases it could return an object from ClickHouse like aUnsignedLong. Seecom.clickhouse.data.value.ClickHouseLongValue$UnsignedLong. -
supportedAggregationFunctions
-