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

[GLUTEN-6101][VL] Enable map_from_array function #6102

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

WangGuangxin
Copy link
Contributor

What changes were proposed in this pull request?

Enable map_from_array function

(Fixes: #6101)

How was this patch tested?

UT

Copy link

#6101

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

@WangGuangxin
Copy link
Contributor Author

cc @rui-mo @PHILO-HE

Copy link
Contributor

@rui-mo rui-mo left a comment

Choose a reason for hiding this comment

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

Copy link

Run Gluten Clickhouse CI

Copy link
Contributor

@PHILO-HE PHILO-HE left a comment

Choose a reason for hiding this comment

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

@WangGuangxin, could you do a rebase? Thanks!

val mapKeyDedupPolicy = SQLConf.get.getConf(SQLConf.MAP_KEY_DEDUP_POLICY)
val newSubstraitExprName =
if (mapKeyDedupPolicy == SQLConf.MapKeyDedupPolicy.EXCEPTION.toString) {
"map_from_arrays_exception_on_duplicates"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this function name really used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it's related to facebookincubator/velox#10280.

But I think it's more reasonable to check the mapKeyDedupPolicy config in velox instead of register two functions. WDYT @PHILO-HE @rui-mo @jinchengchenghh

Copy link
Contributor

Choose a reason for hiding this comment

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

Using a config looks better to me. But it requires some extra code change for that presto function. You can check with Meta guys.

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.

[VL] Enable map_from_arrays function
3 participants