-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Expose Constraints internals #7511
Labels
Comments
This sounds reasonable to me. |
I think this would be a great first issue:
|
I have a simple patch that implements |
tv42
added a commit
to tv42/arrow-datafusion
that referenced
this issue
Sep 19, 2023
Thanks @tv42 |
alamb
pushed a commit
that referenced
this issue
Sep 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
DataFusion v29.0.0 added commit 5f03146, which contains this change:
So, previously,
primary_key
was just aVec
, andColumn
was public. Now it'sConstraints
, andConstraints
has only private fields and no accessor methods: https://docs.rs/datafusion/latest/datafusion/common/struct.Constraints.htmlPreviously, I could take a logical plan and introspect it. Now I can't.
Can we make
Constraint
public, and either make the inner ofConstraints
public, or add an accessor method (maybe an iterator)?The change should be pretty simple, but I'm trying to understand the thinking behind the current API.
Cc @mustafasrepo @metesynnada @ozankabak
To Reproduce
Expected behavior
Be able to introspect the LogicalPlan.
Additional context
No response
The text was updated successfully, but these errors were encountered: