Materialized View - reads error

23 views
Skip to first unread message

sujan dutta

unread,
Jul 30, 2023, 12:04:43 AM7/30/23
to DataStax Spark Connector for Apache Cassandra

I am able to read cassandra tables with catalog but not able to read Materialized Views,
Exception in thread "main" org.apache.spark.sql.AnalysisException: Table or view not found: ....
Spark SQL 3.4.1 and spark Connector 3.4.0 


Even i tried with spark connector 3.3.0 which release note mentioned MV reads are fixed
https://github.com/datastax/spark-cassandra-connector/releases

code sample:

val viewDf = spark.read.format("org.apache.spark.sql.cassandra")
                        .table("mycatalog.myks.myview")

I am able to read cassandra tables with above code block, let me know if i am missing any options etc to read a cassandra view.


Reply all
Reply to author
Forward
0 new messages