ClickHouse / power-bi-clickhouse

This connector allows you to retrieve data from ClickHouse directly into Power BI for analysis and visualization
Apache License 2.0
46 stars 1 forks source link

Problem when aggregating values with nullable data type column #22

Open vzubriichuk opened 6 months ago

vzubriichuk commented 6 months ago

Cannot summarize values in column that has nullable type

Steps to reproduce the behavior:

  1. Create table CREATE TABLE db.nullable_table ( ID Int16, Kolvo Nullable(Int16) ) ENGINE = MergeTree() ORDER BY tuple();

  2. Insert values INSERT INTO db.nullable_table VALUES (1,10),(2,20),(3,null);

  3. Add table to PowerBI report, an error occurs when trying to create any visualized object that aggregates values from the Kolvo field

image
  1. Query from query log select sum(cast(Kolvoas DOUBLE)) asC1fromdb.nullable_table``

Configuration

Environment