Skip to content

Power BI ODBC: ClickHouse throws 'CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN' on Nullable Int/Decimal fields in DirectQuery mode #502

@atifiu

Description

@atifiu

Problem

ClickHouse fails with the following error when queried via Power BI (ODBC) in DirectQuery mode:

DB::Exception: Cannot convert NULL value to non-Nullable type...
(CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN)

This occurs even when the underlying schema defines the field as Nullable(Int32) or Nullable(Decimal).

Repro Case

SELECT CAST(persona_id AS Float64)
FROM clickhouse_dev.event

ClickHouse throws:
Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions