I try to use mongo-spark to connect and query.
Read From MongoDB succeeded.
But when I tried the “Filters and Aggregation” example, an error occurred.
link:
Filters and Aggregation(https://docs.mongodb.com/spark-connector/master/scala/aggregation/#filters-and-aggregation)
Also like “Cannot resolve symbol withPipeline”
Use
MongoDB 4.4.5 Community
Spark 3.1.2
Scala 2.12.10
mongo-spark 3.0.1