Seeking help of UDF number-float converting

2019-07-08 Thread Danni Wu
Hello all: I am using UDF to convert schema to JSON, and based on the JSON schema, when a schema has key “type” is “number”, I need to convert the input data to float, such as if an “income” type is number, and the input data is “100”, the output should be “100.0”. But the problem is if an

Seeking help of UDF number-float converting

2019-07-01 Thread Danni Wu
Hello: I am using UDF to convert schema to JSON, and based on the JSON schema, when a schema has key “type” is “number”, I need to convert the input data to float, such as if an “income” type is number, and the input data is “100”, the output should be “100.0”. But the problem is if an original