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

fix(spark): output columns of expand relation #310

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

andrew-coleman
Copy link
Contributor

Fix the logic for deriving whether each output column of the expand relation is nullable or not.
If one or more of the projections can assign null to the column, then it must be defined as nullable.

Copy link
Contributor

@Blizzara Blizzara left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@Blizzara
Copy link
Contributor

@andrew-coleman ah this has a conflict in the tests it enables, mind merging/rebasing main in? :)

Fix the logic for deriving whether each output column of the
expand relation is nullable or not.
If one or more of the projections can assign null to the column,
then it must be defined as nullable.

Signed-off-by: Andrew Coleman <[email protected]>

# Conflicts:
#	spark/src/test/scala/io/substrait/spark/TPCDSPlan.scala
@Blizzara Blizzara merged commit 6413e55 into substrait-io:main Oct 25, 2024
13 checks passed
@andrew-coleman andrew-coleman deleted the fix_expand branch October 25, 2024 07:03
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.

2 participants