[FLINK-38262][table] describe connection operation#28792
Open
Shekharrajak wants to merge 1 commit into
Open
Conversation
Collaborator
Generated-by: Codex (GPT-5)
Shekharrajak
force-pushed
the
FLINK-38262-describe-connection-operation
branch
from
July 21, 2026 17:20
8372d33 to
805f418
Compare
snuyanzin
requested changes
Jul 21, 2026
snuyanzin
left a comment
Contributor
There was a problem hiding this comment.
Please do not ignore Contributors form
raminqaf
reviewed
Jul 27, 2026
| @Internal | ||
| public class DescribeConnectionOperation implements Operation, ExecutableOperation { | ||
|
|
||
| private static final String CONNECTION_SECRET_REFERENCE_KEY = "__flink.encrypted-secret-key__"; |
Contributor
There was a problem hiding this comment.
You defined this also in the ShowCreateUtil in this PR: https://github.com/apache/flink/pull/28791/changes we should try to re-use it as much as we can
raminqaf
reviewed
Jul 27, 2026
Comment on lines
+126
to
+150
| @Test | ||
| void testDescribeConnection() { | ||
| Operation operation = parse("DESCRIBE CONNECTION my_conn"); | ||
| assertThat(operation).isInstanceOf(DescribeConnectionOperation.class); | ||
| DescribeConnectionOperation op = (DescribeConnectionOperation) operation; | ||
|
|
||
| assertThat(op.getConnectionIdentifier()) | ||
| .isEqualTo(ObjectIdentifier.of("builtin", "default", "my_conn")); | ||
| assertThat(op.isExtended()).isFalse(); | ||
| } | ||
|
|
||
| @Test | ||
| void testDescribeConnectionExtended() { | ||
| Operation operation = parse("DESC CONNECTION EXTENDED my_conn"); | ||
| DescribeConnectionOperation op = (DescribeConnectionOperation) operation; | ||
| assertThat(op.isExtended()).isTrue(); | ||
| } | ||
|
|
||
| @Test | ||
| void testDescribeConnectionWithFullyQualifiedName() { | ||
| Operation operation = parse("DESCRIBE CONNECTION cat1.db1.my_conn"); | ||
| DescribeConnectionOperation op = (DescribeConnectionOperation) operation; | ||
| assertThat(op.getConnectionIdentifier()) | ||
| .isEqualTo(ObjectIdentifier.of("cat1", "db1", "my_conn")); | ||
| } |
raminqaf
reviewed
Jul 27, 2026
raminqaf
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the contribution left some comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
Adds DescribeConnectionOperation and converter support for DESCRIBE CONNECTION, with masked sensitive values and extended metadata.
Brief change log
Add DESCRIBE CONNECTION operation
Verifying this change
Unit tests and IT
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no) noDocumentation
Was generative AI tooling used to co-author this PR?