-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: add SHOW TYPES to list all custom types #3280
Conversation
ksql-cli/src/main/java/io/confluent/ksql/cli/console/table/builder/TypeListTableBuilder.java
Show resolved
Hide resolved
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.
LGTM!
|
||
private static final Map<SqlBaseType, Function<SchemaInfo, String>> TO_TYPE_STRING = | ||
ImmutableMap.<SqlBaseType, Function<SchemaInfo, String>>builder() | ||
.put(SqlBaseType.STRING, si -> "VARCHAR(STRING)") |
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.
Can we just use STRING
?
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.
sure - I didn't change anything here from what it was previously, but I'll do that :)
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.
actually - this would be a relatively intrusive change to docs and unit tests. I will leave it as is
Description
Pretty straightforward. Allows users to list all of their custom types. Note that nested custom types will show up resolved.
Testing done
Reviewer checklist