티스토리 뷰

공부

[Spark] float to int

승가비 2020. 7. 13. 23:35
728x90
CAST(float_value as BIGINT)

https://stackoverflow.com/questions/45898806/how-do-i-convert-or-cast-a-string-value-to-an-integer-value/45898925

 

How do I convert (or cast) a String value to an Integer value?

Using Spark 2.1 (on Databricks), I have a table which has a column of type String as a result of an import from a .CSV file. In a SELECT query against that table, I am attempting to convert that co...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[Linux] which command  (0) 2020.07.13
[Linux] unset env variables  (0) 2020.07.13
`/etc/hosts`  (0) 2020.07.13
드모르간의 법칙 (De Morgan's law)  (8) 2020.07.13
[Java] mail filename encoding UTF-8  (0) 2020.07.10
댓글