-
Notifications
You must be signed in to change notification settings - Fork 242
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
Allow structs and arrays to pass through for Shuffle and Sort #1477
Conversation
Signed-off-by: Kuhu Shukla <[email protected]>
…into shuffle_structs
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.
Is there a reason we don't want to allow for maps too? as they are just an array of structs (assuming that we have tested that it works)
@@ -772,6 +772,7 @@ def gen_scalars_for_sql(data_gen, count, seed=0, force_no_nulls=False): | |||
boolean_gens = [boolean_gen] | |||
|
|||
single_level_array_gens = [ArrayGen(sub_gen) for sub_gen in all_basic_gens + decimal_gens + [null_gen]] | |||
single_level_array_gens_non_decimal = [ArrayGen(sub_gen) for sub_gen in all_basic_gens + [null_gen]] |
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.
Why not include decimal?
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 saw some analysis exception with legacy setting for negative scale when trying to sort arrays with decimal type which I am not fully aware on where we stand in terms of support so I excluded those in that particular test.
I will check it out further
Signed-off-by: Kuhu Shukla <[email protected]>
build |
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.
Looks good, but needs an upmerge (sorry conflicts with something I just merged in)
…into shuffle_structs
Signed-off-by: Kuhu Shukla <[email protected]>
build |
…#1477) Signed-off-by: Kuhu Shukla <[email protected]> Co-authored-by: Kuhu Shukla <[email protected]>
…#1477) Signed-off-by: Kuhu Shukla <[email protected]> Co-authored-by: Kuhu Shukla <[email protected]>
…#1477) Signed-off-by: Robert (Bobby) Evans <[email protected]>
This change allows structs and arrays for shuffle and sort for pass through as i/p and o/p. The change is fairly simple so I am not sure if more is expected from this change or if I missed anything else. Please guide as needed. I saw some analysis exception with legacy setting for negative scale when trying to sort arrays with decimal type which I am not fully aware on where we stand in terms of support so I excluded those in that particular test.