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

[SPARK-50953][PYTHON][CONNECT] Add support for non-literal paths in VariantGet #49609

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

harshmotw-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR allows the variant_get expression to support non-literal path inputs.

Why are the changes needed?

Currently, variant_get only supports literal paths as the second argument. Users may have columns containing paths which they would want to extract from variants. This PR allows this functionality.

Does this PR introduce any user-facing change?

Yes, prior to this PR, variant_get did not have support for non-literal paths.

How was this patch tested?

Unit tests to make sure that:

  1. The VariantGet/TryVariantGet expressions with non-literal paths has the expected behavior regardless of codegen mode.
  2. VariantGet expressions with non-literal paths do not get pushed down as this functionality has not been implemented.

Was this patch authored or co-authored using generative AI tooling?

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants