Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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)