Class ClickHouseQueryEngine

java.lang.Object
io.squashql.query.database.AQueryEngine<ClickHouseDatastore>
io.squashql.query.database.ClickHouseQueryEngine
All Implemented Interfaces:
QueryEngine<ClickHouseDatastore>

public class ClickHouseQueryEngine extends AQueryEngine<ClickHouseDatastore>
  • Field Details

    • SUPPORTED_AGGREGATION_FUNCTIONS

      public static final List<String> 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

  • Method Details

    • retrieveAggregates

      protected Table retrieveAggregates(DatabaseQuery query, String sql)
      Specified by:
      retrieveAggregates in class AQueryEngine<ClickHouseDatastore>
    • executeRawSql

      public Table executeRawSql(String sql)
    • 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 call ClickHouseValue.asObject() because in some cases it could return an object from ClickHouse like a UnsignedLong. See com.clickhouse.data.value.ClickHouseLongValue$UnsignedLong.
    • supportedAggregationFunctions

      public List<String> supportedAggregationFunctions()