MrPowers / bebe

Filling in the Spark function gaps across APIs
50 stars 5 forks source link

Attempt to add bebe_chr #26

Closed MrPowers closed 3 years ago

MrPowers commented 3 years ago

Anyone know how to make a DataFrame with a CharType column?

alfonsorr commented 3 years ago

There is no char type in spark, the function returns a string type https://github.com/apache/spark/blob/02e74b298a98b579e95a22080832100fa4384712/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala#L2016