UDF function to check if number is numeric

前端 未结 0 1411
野的像风
野的像风 2021-02-09 19:09

I have an sql query \'case when col1(checknumeric)=1 then col1 else NULL\'

need to implement it in spark. I tried doing it like def is_digit(col1): if col1: return col1.i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题