Skip to content

Replace call to ColumnVisibility.flatten() with getExpression()#290

Merged
DomGarguilo merged 1 commit intoapache:mainfrom
DomGarguilo:colVisDeprecationReplace
Feb 12, 2025
Merged

Replace call to ColumnVisibility.flatten() with getExpression()#290
DomGarguilo merged 1 commit intoapache:mainfrom
DomGarguilo:colVisDeprecationReplace

Conversation

@DomGarguilo
Copy link
Member

ColumnVisibility.flatten() has been removed. This PR replaces it with ColumnVisibility.getExpression()

@DomGarguilo DomGarguilo self-assigned this Feb 11, 2025
byte[] qual = genCol(random.nextInt(maxQual));
@SuppressWarnings("deprecation")
byte[] cv = visibilities.get(random.nextInt(visibilities.size())).flatten();
byte[] cv = visibilities.get(random.nextInt(visibilities.size())).getExpression();
Copy link
Contributor

Choose a reason for hiding this comment

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

flatten was used to normalize the existing parse tree.
While calling getExpression() will return a byte array, I don't believe it de-duplicates the expression anymore.

Just something to be aware of when testing.

@DomGarguilo DomGarguilo merged commit 9bc35de into apache:main Feb 12, 2025
1 check passed
@DomGarguilo DomGarguilo deleted the colVisDeprecationReplace branch February 12, 2025 18:23
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