-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SQL] Fixed expression data type matching. #5675
Conversation
There was a bug introduced by apache#5350
@@ -279,7 +279,7 @@ abstract class CodeGenerator[InType <: AnyRef, OutType <: AnyRef] extends Loggin | |||
org.apache.spark.sql.types.UTF8String(${eval.primitiveTerm}.toString) | |||
""".children | |||
|
|||
case EqualTo(e1: BinaryType, e2: BinaryType) => | |||
case EqualTo(e1 @ BinaryType(), e2 @ BinaryType()) => |
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 bug introduced in #5350
Test build #30902 has finished for PR 5675 at commit
|
/** Matches any expression that evaluates to this DataType */ | ||
def unapply(a: Expression): Boolean = a match { | ||
/** | ||
* Enables matching against NumericType for expressions: |
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.
typo? Seems it should be DataType.
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.
ah yes - I will fix that.
Also took the chance to improve documentation for various types. Author: Reynold Xin <rxin@databricks.com> Closes apache#5675 from rxin/data-type-matching-expr and squashes the following commits: 0f31856 [Reynold Xin] One more function documentation. 27c1973 [Reynold Xin] Added more documentation. 336a36d [Reynold Xin] [SQL] Fixed expression data type matching.
Also took the chance to improve documentation for various types. Author: Reynold Xin <rxin@databricks.com> Closes apache#5675 from rxin/data-type-matching-expr and squashes the following commits: 0f31856 [Reynold Xin] One more function documentation. 27c1973 [Reynold Xin] Added more documentation. 336a36d [Reynold Xin] [SQL] Fixed expression data type matching.
Also took the chance to improve documentation for various types.