Skip to content

Improve some interfaces about ORC filter push down - #11

Merged
al13n321 merged 9 commits into
ClickHouse:mainfrom
taiyang-li:ch_orc_filter_push_down
Oct 24, 2023
Merged

al13n321 merged 9 commits into
ClickHouse:mainfrom
taiyang-li:ch_orc_filter_push_down

Conversation

@taiyang-li

@taiyang-li taiyang-li commented Oct 8, 2023 •

Copy link
Copy Markdown

What changes were proposed in this pull request?

Improve some interfaces about orc search argument and fix one bug about invalid memory access.

@github-actions github-actions Bot added the CPP label Oct 8, 2023
@taiyang-li taiyang-li changed the title Improve some interfaces about orc search argument Improve some interfaces about ORC filter push down Oct 8, 2023
@taiyang-li
taiyang-li marked this pull request as ready for review October 9, 2023 10:51
@al13n321

Copy link
Copy Markdown

Diverging the fork from the upstream for something this minor doesn't seem worth it. Can you try to either get these changes accepted into the upstream apache/orc or try to do without them?

Seems that this should be pretty upstreamable, especially with some changes to keep full compatibility (if needed):

  • Can keep both overloads of searchArgument(), with the unique_ptr overload just creating a shared_ptr and calling the shared_ptr overload.
  • Can keep both versions of getChild(), naming the new one getChildRef() or something.

@al13n321 al13n321 self-assigned this Oct 14, 2023

@al13n321 al13n321 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ok, people told me this is fine and we actually commit to these forks freely.

@taiyang-li

Copy link
Copy Markdown
Author

@al13n321 failed java not related to this PR. And I don't know why c++ tests on windows failed, but let's try to fix it.

@taiyang-li

Copy link
Copy Markdown
Author

@al13n321 failed java not related to this PR. And I don't know why c++ tests on windows failed, but let's try to fix it.

done

@taiyang-li

Copy link
Copy Markdown
Author

@al13n321 can we merge this pr first if it is ok ?

@al13n321
al13n321 merged commit e24f2c2 into ClickHouse:main Oct 24, 2023
nickitat pushed a commit that referenced this pull request Sep 10, 2024
* improve some interfaces about orc search argument

* remove std::cout

* fix invalid memory access which cause https://s3.amazonaws.com/clickhouse-test-reports/55330/7b328df6f65f56b5c2944bc1f283d4f376cc783c/stateless_tests__msan__[3_6].html

* fix code style

* fix code style

* improve code

* allow in single literals

* fix failed uts after allowing in literal list with size 1

* fix failed windows ut
nickitat pushed a commit that referenced this pull request Oct 14, 2024
* improve some interfaces about orc search argument

* remove std::cout

* fix invalid memory access which cause https://s3.amazonaws.com/clickhouse-test-reports/55330/7b328df6f65f56b5c2944bc1f283d4f376cc783c/stateless_tests__msan__[3_6].html

* fix code style

* fix code style

* improve code

* allow in single literals

* fix failed uts after allowing in literal list with size 1

* fix failed windows ut
nickitat pushed a commit that referenced this pull request Dec 10, 2024
* improve some interfaces about orc search argument

* remove std::cout

* fix invalid memory access which cause https://s3.amazonaws.com/clickhouse-test-reports/55330/7b328df6f65f56b5c2944bc1f283d4f376cc783c/stateless_tests__msan__[3_6].html

* fix code style

* fix code style

* improve code

* allow in single literals

* fix failed uts after allowing in literal list with size 1

* fix failed windows ut
thevar1able pushed a commit that referenced this pull request Jun 6, 2025
* improve some interfaces about orc search argument

* remove std::cout

* fix invalid memory access which cause https://s3.amazonaws.com/clickhouse-test-reports/55330/7b328df6f65f56b5c2944bc1f283d4f376cc783c/stateless_tests__msan__[3_6].html

* fix code style

* fix code style

* improve code

* allow in single literals

* fix failed uts after allowing in literal list with size 1

* fix failed windows ut
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.

2 participants