Closed taylorchu closed 1 year ago
metabase-clickhouse-driver version: 0.16.0
@taylorchu, thanks for the report.
I checked it with Metabase 0.46.5 and driver version 1.1.6, and for me there were no issues/exceptions:
DESCRIBE TABLE test_sessions
┌─name─────────┬─type─────┬─default_type─┬─default_expression─┬─comment─┬─codec_expression─┬─ttl_expression─┐
│ session_id │ UInt64 │ │ │ │ │ │
│ session_name │ String │ │ │ │ │ │
│ created_at │ DateTime │ │ │ │ │ │
└──────────────┴──────────┴──────────────┴────────────────────┴─────────┴──────────────────┴────────────────┘
Can you please confirm that the issue is not reproducible on the latest driver version? And if it still is, can you please provide a DDL/minimal dataset?
I am closing this. I found this issue is actually from metabase. Metabase has a cached version of schema. When you change column type from numeric to string in clickhouse, you should also remove this cache in metabase to avoid this problem.
Describe the bug
Steps to reproduce
Expected behaviour
numeric value is casted to string correctly instead of Uint32.
Error log
Configuration
Environment