-
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 describe option to list streams/tables #6827
Conversation
It looks like @lct45 hasn't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here. Once you've signed reply with Appreciation of efforts, clabot |
[clabot:check] |
@confluentinc It looks like @lct45 just signed our Contributor License Agreement. 👍 Always at your service, clabot |
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.
Thanks @lct45! This is looking good. I've left some feedback inline. We probably want another keyword than DESCRIPTION
.
ksqldb-engine/src/test/java/io/confluent/ksql/integration/JoinIntTest.java
Outdated
Show resolved
Hide resolved
ksqldb-parser/src/test/java/io/confluent/ksql/parser/KsqlParserTest.java
Show resolved
Hide resolved
ksqldb-parser/src/test/java/io/confluent/ksql/parser/KsqlParserTest.java
Show resolved
Hide resolved
ksqldb-parser/src/main/java/io/confluent/ksql/parser/tree/ListStreams.java
Outdated
Show resolved
Hide resolved
23fc4f0
to
10e1d32
Compare
@@ -55,6 +55,7 @@ statement | |||
| (LIST | SHOW) TYPES #listTypes | |||
| (LIST | SHOW) VARIABLES #listVariables | |||
| DESCRIBE EXTENDED? sourceName #showColumns | |||
| DESCRIBE EXTENDED? STREAMS #describeStreams |
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.
Won't this syntax going to confuse users between the use of show streams extended
and describe extended streams
? fyi @rodesai
I was getting confused too, so I wonder how users would react to this.
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.
Yeah, I do think it's somewhat confusing. It's sticking with the current semantic set up though since we have describe extended sourcename
verses list streams extended
so I'm not sure it would make sense to switch it to describe streams extended
if we don't also switch it to describe sourceName extended
. We briefly mentioned this when talking to @derekjn and @colinhicks but there wasn't a full discussion
per discussion with @derekjn, transitioning |
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!
KBYTES | BIGINT | ||
----------------------------------------- | ||
|
||
Queries that write into this TABLE |
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.
I'm not 100% sure if this is the same, it looks like this statement was moved to be under statement
above, looks like the description might've been updated and the docs weren't does anyone know?
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.
I don't know -- please feel free to fix it as you see fit!
Docs updates LGTM. |
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, other than a couple small comments inline. Feel free to merge once those are addressed.
ksqldb-rest-app/src/main/java/io/confluent/ksql/rest/server/execution/ListSourceExecutor.java
Show resolved
Hide resolved
c195891
to
820ff5f
Compare
@lct45 it would be good to tweak the PR description to match the syntax that we landed upon. e.g. |
Description
Add a
DESCRIBE
option forLIST STREAMS/TABLES
to give a subset ofLIST STREAMS/TABLES EXTENDED
in order to cut down on the cost of returning pertinent info to the UI, per KSQL-5749. This PR also changes theDESCRIBE SOURCE
syntax to beDESCRIBE SOURCE EXTENDED
instead ofDESCRIBE EXTENDED SOURCE
to match the wording ofDESCRIBE TABLES/STREAMS EXTENDED
Testing done
Added unit tests in accordance with testing done for
EXTENDED
Reviewer checklist