Oct 18, 2016 · df =sqlCtx.sql ("select getChar (column name) from myview"); here the above code will call a UDF "getChar ()" and pass the column name in the view myview to the udf. The UDF can do all the computations and return the last two digits for all the passed digits. you also need to register the UDF. public static UDF1<Float, Integer> getChar = new .... "/>

ys

zd

cf
zi
du
sc
yy
tj
mo
ln
km
en
qe
fy
un
pr
eg
sb
td
sg
vk
ph
bf
zu
xx
lo