Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add
field
trait method toWindowUDFImpl
, removereturn_type
/nullable
#12374Add
field
trait method toWindowUDFImpl
, removereturn_type
/nullable
#12374Changes from 39 commits
ae69e1e
f09383c
ca256fa
9b21b7f
9324df6
4cd1467
deff13c
ac5ef0a
7c4293a
83d833b
927f1cc
e29a493
79d8372
fc969e8
df2b1c8
e26aba6
258986d
ba9e39a
b671b36
712263e
9426978
327db32
f5b62ef
34565ff
ede7827
25f3b50
f012bdd
0e8795f
4bd77d5
a0f2ccb
d0d429c
7bceb9e
9e04fd8
1e8c300
efbad36
7c445e1
7ea3ce8
17da204
32bdf36
acfa03e
a47b7a0
8da1364
9413a58
275daea
4c7157d
045d352
5cc7d06
0102334
4bb799d
2530169
25b299e
ce7df3a
bb57f8f
e6a7113
c627403
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I copied the call to
data_types_with_window_udf
: type-coercion performed for window function arguments fromExpr::get_type
(above).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should handle this compute in
to_field
.data_types_with_window_udf
could reuseto_field
.data_types
andnullable
could reusedata_types_with_window_udf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. I'll update the PR with the suggested change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to
self.qualified_name()
into_field
, we might have different name for Column and Alias?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
nullable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be useful to document here how the "name" for the returned field is supposed to be set :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. It's a great suggestion. I'll implement in a follow-up PR.
Thanks @Blizzara