-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Introduce TypeSignatureClass::Any
#19485
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
| SELECT arrow_cast('1') | ||
|
|
||
| query error DataFusion error: Execution error: arrow_cast requires its second argument to be a non\-empty constant string | ||
| query error Expect TypeSignatureClass::Native\(LogicalType\(Native\(String\), String\)\) but received NativeType::Int64, DataType: Int64 |
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.
Probably should start looking in #19004 properly to try pretty up these new error messages 🤔
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.
These are really ugly I agree it would be nice if it was neater. But the current status quo is not good so this is no better or worse imo.
adriangb
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.
Thanks @Jefffrey !
| // TODO: might be too much info to return every single type here | ||
| // maybe https://github.com/apache/datafusion/issues/14761 will help here? |
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.
👍🏻
| SELECT arrow_cast('1') | ||
|
|
||
| query error DataFusion error: Execution error: arrow_cast requires its second argument to be a non\-empty constant string | ||
| query error Expect TypeSignatureClass::Native\(LogicalType\(Native\(String\), String\)\) but received NativeType::Int64, DataType: Int64 |
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.
These are really ugly I agree it would be nice if it was neater. But the current status quo is not good so this is no better or worse imo.
|
Thanks @adriangb |
Which issue does this PR close?
TypeSignatureClass::Anyvariant #19438Rationale for this change
See issue.
What changes are included in this PR?
Add new
TypeSignatureClassvariantAnyand refactorarrow_typeofandarrow_metadatafunction signatures to use this.Are these changes tested?
Existing tests.
Are there any user-facing changes?
No.