Re: [PR] feat: support min/max for struct [datafusion]

2025-05-20 Thread via GitHub
chenkovsky commented on code in PR #15667: URL: https://github.com/apache/datafusion/pull/15667#discussion_r2097992883 ## datafusion/functions-aggregate/src/min_max.rs: ## @@ -619,6 +625,45 @@ fn min_batch(values: &ArrayRef) -> Result { }) } +fn min_max_batch_struct(arra

Re: [PR] feat: support min/max for struct [datafusion]

2025-05-06 Thread via GitHub
alamb merged PR #15667: URL: https://github.com/apache/datafusion/pull/15667 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusi

Re: [PR] feat: support min/max for struct [datafusion]

2025-05-03 Thread via GitHub
chenkovsky commented on code in PR #15667: URL: https://github.com/apache/datafusion/pull/15667#discussion_r2072519832 ## datafusion/functions-aggregate/src/min_max.rs: ## @@ -619,6 +625,45 @@ fn min_batch(values: &ArrayRef) -> Result { }) } +fn min_max_batch_struct(arra

Re: [PR] feat: support min/max for struct [datafusion]

2025-05-03 Thread via GitHub
chenkovsky commented on code in PR #15667: URL: https://github.com/apache/datafusion/pull/15667#discussion_r2072517249 ## datafusion/functions-aggregate/src/min_max.rs: ## @@ -619,6 +625,45 @@ fn min_batch(values: &ArrayRef) -> Result { }) } +fn min_max_batch_struct(arra

Re: [PR] feat: support min/max for struct [datafusion]

2025-05-03 Thread via GitHub
alamb commented on code in PR #15667: URL: https://github.com/apache/datafusion/pull/15667#discussion_r2072364948 ## datafusion/functions-aggregate-common/src/aggregate/groups_accumulator/nulls.rs: ## @@ -193,6 +193,14 @@ pub fn set_nulls_dyn(input: &dyn Array, nulls: Option) -

Re: [PR] feat: support min/max for struct [datafusion]

2025-04-28 Thread via GitHub
chenkovsky commented on PR #15667: URL: https://github.com/apache/datafusion/pull/15667#issuecomment-2837583800 @alamb could you please review it again ? I see min/max for dict is supported now. struct is similar. -- This is an automated message from the Apache Git Service. To respond to

Re: [PR] feat: support min/max for struct [datafusion]

2025-04-14 Thread via GitHub
chenkovsky commented on code in PR #15667: URL: https://github.com/apache/datafusion/pull/15667#discussion_r2042084363 ## datafusion/functions-aggregate/src/min_max.rs: ## @@ -610,10 +611,57 @@ fn min_batch(values: &ArrayRef) -> Result { min_binary_view

Re: [PR] feat: support min/max for struct [datafusion]

2025-04-10 Thread via GitHub
alamb commented on code in PR #15667: URL: https://github.com/apache/datafusion/pull/15667#discussion_r2037994858 ## datafusion/functions-aggregate/src/min_max.rs: ## @@ -610,10 +611,57 @@ fn min_batch(values: &ArrayRef) -> Result { min_binary_view

Re: [PR] feat: support min/max for struct [datafusion]

2025-04-10 Thread via GitHub
alamb commented on PR #15667: URL: https://github.com/apache/datafusion/pull/15667#issuecomment-2794741953 > the performance for struct is worse than primitive types. does anyone have suggestions about optimizing it. Do make it faster you could implement a `GroupsAccumulator` -- Th

[PR] feat: support min/max for struct [datafusion]

2025-04-09 Thread via GitHub
chenkovsky opened a new pull request, #15667: URL: https://github.com/apache/datafusion/pull/15667 ## Which issue does this PR close? - Closes #15666. ## Rationale for this change datafusion doesn't support min/max for struct. ## What changes are included in this P