[ https://issues.apache.org/jira/browse/SPARK-34867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308653#comment-17308653 ]
unical1988 edited comment on SPARK-34867 at 3/25/21, 12:30 PM: --------------------------------------------------------------- {code:java} // I tried to specify a column before using when on it (with firstDF.apply("col4")) firstDF.select(firstDF.apply("col4").when(firstDeltaDF.apply("col4").equalTo("II259"), "II999") .when(col("gender").equalTo("female"), 1) .otherwise("")); {code} was (Author: unical1988): {code:java} firstDF.select(firstDeltaDF.apply("col4").when(firstDeltaDF.apply("col4").equalTo("II259"), "II999") .when(col("gender").equalTo("female"), 1) .otherwise(""));{code} > cannot resolve method when of Column() spark java > ------------------------------------------------- > > Key: SPARK-34867 > URL: https://issues.apache.org/jira/browse/SPARK-34867 > Project: Spark > Issue Type: Bug > Components: Java API > Affects Versions: 3.1.1 > Reporter: unical1988 > Priority: Major > > The error says cannot resolve method main (of Column()) and col in Spark 3.1.1 -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org