如何将浮点值的变量传递给spark expr?
myVariable=0.50; expr("data.mark = myVariable")
这就是我在替换myvariable之后所期望的。
expr("data.mark = 0.50"). --- value 0.50 should be used during execution .
0g0grzrc1#
字符串插值?像这样:
expr(String.format("data.mark = %s", myVariable))
1条答案
按热度按时间0g0grzrc1#
字符串插值?像这样: