pyspark-cassandra connector cassandraTable error

Author: Pramod

Using, pyspark-cassandra-0.9.0.jar

I see below error, please help I am trying here to use LOCAL_QUORUM. https://github.com/anguenot/pyspark-cassandra#pyspark_cassandracassandrasparkcontext

sc.cassandraTable("pramod","history","ROW").where("sent_date >='2024-06-11T00:00:00Z' and sent_date <='2027-11-15T00:00:00Z'").cassandraCount()  

Traceback (most recent call last):
File "", line 1, in 
File "/var/lib/spark/rdd/spark-ee8d74f8-6d9e-4283-9dba-957cd9d83d8c/userFiles-4e5d6454-e784-4d00-875a-e7c7acf3d566/pyspark-cassandra-0.9.0.jar/pyspark_cassandra/context.py", line 33, in cassandraTable
File "/var/lib/spark/rdd/spark-ee8d74f8-6d9e-4283-9dba-957cd9d83d8c/userFiles-4e5d6454-e784-4d00-875a-e7c7acf3d566/pyspark-cassandra-0.9.0.jar/pyspark_cassandra/rdd.py", line 318, in init
File "/var/lib/spark/rdd/spark-ee8d74f8-6d9e-4283-9dba-957cd9d83d8c/userFiles-4e5d6454-e784-4d00-875a-e7c7acf3d566/pyspark-cassandra-0.9.0.jar/pyspark_cassandra/rdd.py", line 192, in init
ValueError: invalid row_format ROW

Also, Although I gave 6 arguments, its throwing error as 8 given.

sc.cassandraTable("pramod","history","ROW",100000,1000,"LOCAL_QUORUM").where("sent_date >='2024-06-11T00:00:00Z' and sent_date <='2027-11-15T00:00:00Z'").cassandraCount()  

Traceback (most recent call last):
File "", line 1, in 
File "/var/lib/spark/rdd/spark-ee8d74f8-6d9e-4283-9dba-957cd9d83d8c/userFiles-4e5d6454-e784-4d00-875a-e7c7acf3d566/pyspark-cassandra-0.9.0.jar/pyspark_cassandra/context.py", line 33, in cassandraTable
TypeError: init() takes at most 6 arguments (8 given)

Originally Sourced from: https://stackoverflow.com/questions/57896906/pyspark-cassandra-connector-cassandratable-error