Skip to content
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

Fix the bug that RowIndex column type cannot be serialized #11208

Closed
wants to merge 1 commit into from

Conversation

hongtaoy
Copy link

@hongtaoy hongtaoy commented Oct 9, 2024

Summary:
I came across a bug when I tried to serialize a TableScanNode with special row index column.

The isssue

folly::dynamic HiveColumnHandle::serialize() uses columnTypeNames to serialize the TableScanNode. However, RowIndex is missing in columnTypeNames. serialize method would raise a std::out_of_range error because of this.

The fix

The fix is simple -- just add row index column to the map.

Differential Revision: D64088125

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 9, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64088125

Copy link

netlify bot commented Oct 9, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit bc9fafb
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6706d3debcfc40000828851f

hongtaoy pushed a commit to hongtaoy/velox that referenced this pull request Oct 9, 2024
…ncubator#11208)

Summary:

I came across a bug when I tried to serialize a TableScanNode with special row index column. 

### The isssue
`folly::dynamic HiveColumnHandle::serialize()` uses `columnTypeNames` to serialize the TableScanNode. However, RowIndex is missing in `columnTypeNames`. serialize method would raise a std::out_of_range error because of this.

### The fix
The fix is simple -- just add row index column to the map.

Differential Revision: D64088125
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64088125

…ncubator#11208)

Summary:

I came across a bug when I tried to serialize a TableScanNode with special row index column. 

### The isssue
`folly::dynamic HiveColumnHandle::serialize()` uses `columnTypeNames` to serialize the TableScanNode. However, RowIndex is missing in `columnTypeNames`. serialize method would raise a std::out_of_range error because of this.

### The fix
The fix is simple -- just add row index column to the map.

Reviewed By: Yuhta

Differential Revision: D64088125
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64088125

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d5df0a7.

Copy link

Conbench analyzed the 1 benchmark run on commit d5df0a7d.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants