-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum Code + Test #2028
base: main
Are you sure you want to change the base?
Enum Code + Test #2028
Conversation
Quality Gate passedIssues Measures |
} else { | ||
ClickHouseDataType dataType = schema.getColumnByName(colName).getDataType(); | ||
if (dataType == ClickHouseDataType.Enum8 || dataType == ClickHouseDataType.Enum16) { | ||
ClickHouseEnum clickHouseEnum = schema.getColumnByName(colName).getEnumConstants(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we always schema-aware?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Otherwise we may not read data.
Schema may be from data stream header or user provided.
Summary
Adds an alternate String flow that checks for Enum type and translates the underlying number to String
Checklist
Delete items not relevant to your PR: