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

don't return private variables that match current dataframe #207

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

shouples
Copy link
Collaborator

When attempting to match a dataframe to a variable name, if the only matches were private/auto-generated variables in the user namespace (e.g. _1, _2, etc), it would return the most recent one. This would then go into user_variable_name in the output metadata, which had unintended side effects. This PR returns the unk_dataframe_<hash> temporary internal dataframe name (for duckdb registration in the kernel session) instead.

This also means any variable names starting with an underscore will be ignored and temporary variable names will be used internally instead.

@shouples shouples requested a review from kafonek March 28, 2023 16:59
@shouples shouples self-assigned this Mar 28, 2023
@shouples shouples changed the title don't return private variables that match don't return private variables that match current dataframe Mar 28, 2023
@shouples shouples linked an issue Mar 28, 2023 that may be closed by this pull request
@shouples shouples merged commit 11461b5 into main Mar 29, 2023
@shouples shouples deleted the djs/private-user-variable branch March 29, 2023 19:05
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.

user_variable_name can be _1, _2, etc
2 participants