-
Notifications
You must be signed in to change notification settings - Fork 1.8k
bugfix: correct regression on TableType for into_view #18617
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
Conversation
|
@r1b mind a quick review? One line change to the code, plus unit test |
alamb
left a comment
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.
Makes sense to me -- thanks @timsaucer
| let table_provider = df_impl.clone().into_view(); | ||
| assert_eq!(table_provider.table_type(), TableType::View); | ||
| ctx.register_table("test_table", table_provider)?; |
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.
This TableType::View assert is the only one test check for into_view and it is in a test that looks like not added particularly for it. That's said it is very possible it will be forgotten easily.
Maybe just add a simple test specific for into_view?
|
Thanks @timsaucer @viirya and @Jefffrey -- great call to add a test |
|
Thank you @timsaucer |
Which issue does this PR close?
#18158 introduced a regression in the table type created with
DataFrame::into_view()Rationale for this change
Correct regression
What changes are included in this PR?
One line fix
Are these changes tested?
Unit test added
Are there any user-facing changes?
None