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

MINOR: [C++][Parquet] fix dict_length for ReadDictionary when not having dict #41344

Merged

Conversation

mapleFU
Copy link
Member

@mapleFU mapleFU commented Apr 23, 2024

Rationale for this change

dictionary_length = 0 is used when page doesn't have dictionary, however, this should be a nop.

What changes are included in this PR?

Change dictionary_length = 0 to *dictionary_length = 0.

Are these changes tested?

No?

Are there any user-facing changes?

no

@mapleFU mapleFU requested a review from wgtmac as a code owner April 23, 2024 05:24
@mapleFU
Copy link
Member Author

mapleFU commented Apr 23, 2024

cc @pitrou @jp0317 @wgtmac

@mapleFU mapleFU changed the title [C++][Parquet] Minor: fix dict_length for ReadDictionary when not having dict Minor: [C++][Parquet] fix dict_length for ReadDictionary when not having dict Apr 23, 2024
Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

Nice catch!

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Apr 23, 2024
@mapleFU mapleFU changed the title Minor: [C++][Parquet] fix dict_length for ReadDictionary when not having dict MINOR: [C++][Parquet] fix dict_length for ReadDictionary when not having dict Apr 25, 2024
@mapleFU mapleFU merged commit 774f10d into apache:main Apr 25, 2024
35 of 36 checks passed
@mapleFU mapleFU removed the awaiting committer review Awaiting committer review label Apr 25, 2024
@mapleFU mapleFU deleted the minor/fix-dictionary-length-for-read-dict branch April 25, 2024 17:45
Copy link

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 774f10d.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 13 possible false positives for unstable benchmarks that are known to sometimes produce them.

tolleybot pushed a commit to tmct/arrow that referenced this pull request May 2, 2024
…ing dict (apache#41344)

### Rationale for this change

`dictionary_length = 0` is used when page doesn't have dictionary, however, this should be a nop.

### What changes are included in this PR?

Change `dictionary_length = 0` to `*dictionary_length = 0`.

### Are these changes tested?

No?

### Are there any user-facing changes?

no

Authored-by: mwish <maplewish117@gmail.com>
Signed-off-by: mwish <maplewish117@gmail.com>
@pitrou
Copy link
Member

pitrou commented May 6, 2024

It would have been nice to add a test for this.

@mapleFU
Copy link
Member Author

mapleFU commented May 7, 2024

Sigh, seems even the author doesn't reply that, I think that doesn't have user, and maybe before Read, the value would be 0 :-(

vibhatha pushed a commit to vibhatha/arrow that referenced this pull request May 25, 2024
…ing dict (apache#41344)

### Rationale for this change

`dictionary_length = 0` is used when page doesn't have dictionary, however, this should be a nop.

### What changes are included in this PR?

Change `dictionary_length = 0` to `*dictionary_length = 0`.

### Are these changes tested?

No?

### Are there any user-facing changes?

no

Authored-by: mwish <maplewish117@gmail.com>
Signed-off-by: mwish <maplewish117@gmail.com>
CurtHagenlocher pushed a commit to CurtHagenlocher/arrow that referenced this pull request Jun 14, 2024
…ing dict (apache#41344)

### Rationale for this change

`dictionary_length = 0` is used when page doesn't have dictionary, however, this should be a nop.

### What changes are included in this PR?

Change `dictionary_length = 0` to `*dictionary_length = 0`.

### Are these changes tested?

No?

### Are there any user-facing changes?

no

Authored-by: mwish <maplewish117@gmail.com>
Signed-off-by: mwish <maplewish117@gmail.com>
@jp0317
Copy link
Contributor

jp0317 commented Aug 6, 2024

sorry for the late reply, thanks for catching this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants