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

ORC-1388: [C++] Support schema evolution from decimal to timestamp/string group #1761

Closed
wants to merge 5 commits into from

Conversation

ffacs
Copy link
Contributor

@ffacs ffacs commented Jan 18, 2024

What changes were proposed in this pull request?

Support conversion from
{decimal}
to
{string, char, varchar, timestamp, timestamp_instant}

Why are the changes needed?

Support schema evolution at cpp side.

How was this patch tested?

UT passed.

Was this patch authored or co-authored using generative AI tooling?

NO

@github-actions github-actions bot added the CPP label Jan 18, 2024
@wgtmac
Copy link
Member

wgtmac commented Jan 22, 2024

Thanks for fixing the CI. I will take a look this week.

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.

Mostly LGTM. I have left some questions.

public:
DecimalToStringVariantColumnReader(const Type& _readType, const Type& fileType,
StripeStreams& stripe, bool _throwOnOverflow)
: ConvertToStringVariantColumnReader(_readType, fileType, stripe, _throwOnOverflow),
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR: we have many weird _xxx variable names appearing in the function signature. I'm thinking to do something like apache/arrow, which only use xxx_ as the name of private class member variables. In this way, we can get rid of the weird case like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated to this PR: we have many weird _xxx variable names appearing in the function signature. I'm thinking to do something like apache/arrow, which only use xxx_ as the name of private class member variables. In this way, we can get rid of the weird case like this.

Maybe we can use clang-tidy with option "readability-identifier-naming.ClassMemberSuffix" to do this. I can make a PR to fix the identifiers naming style this or next week.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you!

@wgtmac wgtmac closed this in f326f6a Jan 30, 2024
@dongjoon-hyun dongjoon-hyun added this to the 2.1.0 milestone Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants