You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing enum type with a single value, function extractEnumNamedValues works incorrectly, returning valid==false for single-value enum with zero value:
topofstack
changed the title
invalid Enum error while parsin single value enum with zero value
invalid Enum error while parsing single value enum with zero value
Nov 14, 2024
Observed
When parsing enum type with a single value, function extractEnumNamedValues works incorrectly, returning
valid==false
for single-value enum with zero value:The output is correct if two or more enum values are passed:
or value is not zero:
Details
Looks like we need to add additional check here https://github.com/ClickHouse/clickhouse-go/blob/v2.30.0/lib/column/enum.go#L169
Environment
clickhouse-go
v2.30.0The text was updated successfully, but these errors were encountered: