Support Questions

Find answers, ask questions, and share your expertise

def sample(a:Column,b:Column):Column={ var c:Column=null ;c=a*(1-b);c} error: overloaded method value + with alternatives cannot be applied to (org.apache.spark.sql.Column)

avatar
 
1 ACCEPTED SOLUTION

avatar
1 REPLY 1

avatar

c=a*(lit(1)-b)