Irrelevant ambigious method call error on intelliJ with spark sql
Answered
This spark sql code compiles and run but intelliJ (idea-IU-172.4343.14) shows an "Ambigious method call" error.
This wasn't happening with previous versions of intelliJ.

public static void main(String[] args) {
SparkSession session = SparkSession //
.builder() //
.appName("idea-ambigious-method-call-bug") //
.master("local[*]") //
.getOrCreate();
Dataset<String> cities = session//
.sqlContext()//
.createDataset(Arrays.asList("Paris", "Porto", "London"), Encoders.STRING());
cities.filter(name -> name.startsWith("P")).show();
}
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
Please sign in to leave a comment.
If the issue persists in https://www.jetbrains.com/idea/nextversion/, please file a bug at https://youtrack.jetbrains.com/issues/IDEA with the sample to reproduce.
I confirm this issue still happens in idea-IU-201.7223.91
Hello,
Please report an issue on YouTrack.