Description
Right now, I cannot do
df.selectExpr("cast(a as bigint)")
because only the following data types are supported in SqlParser
protected lazy val dataType: Parser[DataType] =
( STRING ^^^ StringType
| TIMESTAMP ^^^ TimestampType
| DOUBLE ^^^ DoubleType
| fixedDecimalType
| DECIMAL ^^^ DecimalType.Unlimited
| DATE ^^^ DateType
| INT ^^^ IntegerType
)
Attachments
Issue Links
- is related to
-
SPARK-5911 Make Column.cast(to: String) support fixed precision and scale decimal type
- Resolved
- links to