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

[CORE] Add nativeFilters info for simpleString of scan #8169

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

zml1206
Copy link
Contributor

@zml1206 zml1206 commented Dec 6, 2024

What changes were proposed in this pull request?

SQL: select l_partkey from lineitem where l_partkey + 1 > 5 and rand() < 0.5
Before pr:
V1:
image
V2:
image

After pr:
V1:
image
V2:
image

How was this patch tested?

@github-actions github-actions bot added the CORE works for Gluten Core label Dec 6, 2024
Copy link

github-actions bot commented Dec 6, 2024

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

Copy link

github-actions bot commented Dec 6, 2024

Run Gluten Clickhouse CI on x86

@zml1206 zml1206 requested a review from zhztheplayer December 6, 2024 10:12
@zhztheplayer
Copy link
Member

@zml1206 Would you like to add an example to demonstrate on the difference made by the change? Thanks!

@zml1206
Copy link
Contributor Author

zml1206 commented Dec 9, 2024

@zml1206 Would you like to add an example to demonstrate on the difference made by the change? Thanks!

Added scan change in PR describe.

Copy link
Member

@zhztheplayer zhztheplayer left a comment

Choose a reason for hiding this comment

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

Just one minor. Thank you.

override def simpleString(maxFields: Int): String = {
val truncatedOutputString = truncatedString(output, "[", ", ", "]", maxFields)
val runtimeFiltersString = s"RuntimeFilters: ${runtimeFilters.mkString("[", ",", "]")}"
val nativeFiltersString = s"nativeFilters: ${filterExprs().mkString("[", ",", "]")}"
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Do we prefer NativeFilters than nativeFilters?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thank you.

key + ": " + StringUtils.abbreviate(redact(value), maxMetadataValueLength)
}
val metadataStr = truncatedString(metadataEntries, " ", ", ", "", maxFields)
val nativeFiltersString = s"nativeFilters: ${filterExprs().mkString("[", ",", "]")}"
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link

github-actions bot commented Dec 9, 2024

Run Gluten Clickhouse CI on x86

@zml1206 zml1206 merged commit ebcba49 into apache:main Dec 9, 2024
46 checks passed
yikf pushed a commit to yikf/incubator-gluten that referenced this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE works for Gluten Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants