Skip to content

CASSJAVA-2 Fix TableMetadata.describe() when containing a vector column #1978

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

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

smiklosovic
Copy link
Contributor

patch by Stefan Miklosovic; reviewed by TBD for CASSJAVA-2

patch by Stefan Miklosovic; reviewed by TBD for CASSJAVA-2
@@ -60,7 +60,7 @@ public String getClassName() {
@NonNull
@Override
public String asCql(boolean includeFrozen, boolean pretty) {
return String.format("'%s(%d)'", getClassName(), getDimensions());
return String.format("vector<%s, %d>", getElementType().asCql(true, false), getDimensions());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already fixed in @SiyaoIsHiding 's PR for JAVA-3118. I like the addition of a unit test for it, however, so my inclination is to merge this PR and then have Jane update her PR to remove her change.

Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got confirmation from @SiyaoIsHiding in separate communication that she's fine with tweaking the JAVA-3118 PR after this goes in... so we're all set to go!

Copy link
Contributor

@absurdfarce absurdfarce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@absurdfarce absurdfarce merged commit 348dce6 into apache:4.x Nov 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants