Skip to content

ORC-663: [C++] Support timestamp statistics with nanosecond - #543

Merged
dongjoon-hyun merged 4 commits into
apache:masterfrom
wgtmac:ORC-611
Oct 30, 2020
Merged

dongjoon-hyun merged 4 commits into
apache:masterfrom
wgtmac:ORC-611

Conversation

@wgtmac

@wgtmac wgtmac commented Sep 8, 2020

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

  1. Store nanosecond into TimestampColumnStatistics in C++ writer.
  2. Be aware of nanosecond in the TimestampColumnStatistics.
  3. Adde new functions in TimestampColumnStatistics to get nanosecond while keeping backward compatibility.
  4. Fix PPD to utilize nanosecond or use a default value for timestamp columns.

Why are the changes needed?

To be consistent with the java side.

How was this patch tested?

Several new unit tests have been added to TestPredicateLeaf.cc, TestColumnStatistics.cc, and TestSearchArgument.cc.

@pgaref

pgaref commented Sep 8, 2020

Copy link
Copy Markdown
Contributor

Hey @wgtmac thanks for taking care of this.
Would it make sense to create a separate child-ticket for the C++ fix? ORC-611 is already merged and could cause confusion

@wgtmac wgtmac changed the title ORC-611: [C++] Support timestamp statistics with nanosecond ORC-663: [C++] Support timestamp statistics with nanosecond Sep 8, 2020
@wgtmac

wgtmac commented Sep 8, 2020 •

Copy link
Copy Markdown
Member Author

Hey @wgtmac thanks for taking care of this.
Would it make sense to create a separate child-ticket for the C++ fix? ORC-611 is already merged and could cause confusion

Thanks for the suggestion. @pgaref Please review this patch if you get the chance. Thanks!

@wgtmac
wgtmac requested review from omalley and xndai September 8, 2020 14:35
@wgtmac

wgtmac commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

@dongjoon-hyun Can you take a look at this? Thanks!

@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you for pinging me, @wgtmac . Sure. I'll review this tomorrow.

@dongjoon-hyun dongjoon-hyun self-assigned this Oct 23, 2020
@dongjoon-hyun
dongjoon-hyun self-requested a review October 23, 2020 21:53
@dongjoon-hyun dongjoon-hyun removed their assignment Oct 23, 2020
Comment thread c++/src/sargs/PredicateLeaf.cc Resolved
Comment thread c++/test/TestPredicateLeaf.cc Resolved
Comment thread c++/include/orc/Statistics.hh Resolved
Comment thread c++/include/orc/Statistics.hh Resolved
Comment thread c++/include/orc/sargs/Literal.hh Resolved
Comment thread c++/src/Statistics.cc Resolved
Comment thread c++/src/Statistics.cc Resolved
Comment thread c++/src/Statistics.hh Resolved
Comment thread c++/src/Statistics.hh Resolved
Comment thread c++/src/Statistics.hh Resolved

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi, @wgtmac . I left a few questions and comments. Could you reply on them, please?

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks @dongjoon-hyun ! I have changed the code according to your feedback, please review it again.

Comment thread c++/include/orc/sargs/Literal.hh Resolved
Comment thread c++/include/orc/Statistics.hh Resolved
Comment thread c++/include/orc/Statistics.hh Resolved
Comment thread c++/src/Statistics.cc Resolved
Comment thread c++/src/Statistics.cc Resolved
Comment thread c++/src/Statistics.hh Resolved
Comment thread c++/src/Statistics.hh Resolved
Comment thread c++/src/Statistics.hh Resolved
Comment thread c++/src/sargs/PredicateLeaf.cc Resolved
Comment thread c++/test/TestPredicateLeaf.cc Resolved
@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you for update. Sure, I'll review this tonight~

Comment thread c++/include/orc/sargs/Literal.hh Resolved
Comment thread c++/include/orc/sargs/Literal.hh Resolved
Comment thread c++/include/orc/sargs/Literal.hh Resolved
Comment thread c++/src/sargs/PredicateLeaf.cc Resolved
Comment thread c++/src/sargs/PredicateLeaf.cc Resolved
Comment thread c++/src/sargs/PredicateLeaf.cc Resolved
@dongjoon-hyun

Copy link
Copy Markdown
Member

BTW, @wgtmac . I fixed the AppVeyor failure in the master branch. Could you rebase this PR to the master branch? I hope to see AppVeyor result because this is C++ PR.

@dongjoon-hyun

Copy link
Copy Markdown
Member

Hi, @wgtmac
Could you update once more please?

@wgtmac

wgtmac commented Oct 30, 2020

Copy link
Copy Markdown
Member Author

Hi, @wgtmac
Could you update once more please?

Done. Please check it again. Thanks!

@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you! I'll review today.

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @wgtmac !

@dongjoon-hyun
dongjoon-hyun merged commit 248e78a into apache:master Oct 30, 2020
@wgtmac
wgtmac deleted the ORC-611 branch February 23, 2022 06:26
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.

3 participants