-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Move identifer case tests to sql_integ
, add negative cases, Debug for DataFrame
#2243
Conversation
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
f.debug_struct("SessionState") | ||
.field("session_id", &self.session_id) | ||
// TODO should we print out more? |
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.
There are a lot of other fields on SessionState -- I wasn't sure the value of printing them, so I left it as a future todo
@@ -3322,173 +3334,6 @@ mod tests { | |||
Ok(()) | |||
} | |||
|
|||
#[tokio::test] |
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.
Moved out of context.rs
and into datafusion/core/tests/sql/idenfifers.rs
without change
} | ||
|
||
#[tokio::test] | ||
async fn case_insensitive_in_sql_errors() { |
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 is a new test added in this PR, based on the one from @ReggieFan on #2211 to make it clear this is expected behavior
Which issue does this PR close?
Closes #2227
Rationale for this change
Basically so that it is clear what types of identifier comparisons are meant to work
Also, Re cleaning up tests #743
What changes are included in this PR?
Debug
impls, so I can useunwrap_err()
Are there any user-facing changes?
Debug impl for
DataFame
andSessionContext