Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyspark.sql.utils.IllegalArgumentException when using infer.schema #350

Open
mehdiselbi opened this issue Jul 26, 2022 · 0 comments
Open

Comments

@mehdiselbi
Copy link

mehdiselbi commented Jul 26, 2022

Storing key value pairs in redis without a table or a column names , and I am trying to build a df out of my data using the following code:
df = spark.read.format("org.apache.spark.sql.redis") \ .option("keys.pattern", pattern)\ .option("infer.schema",true)\ .load()
the code at this df level throwing this error :
.option("infer.schema",true)\ File "/usr/lib/spark/python/lib/pyspark.zip/pyspark/sql/readwriter.py", line 184, in load File "/usr/lib/spark/python/lib/py4j-0.10.9-src.zip/py4j/java_gateway.py", line 1305, in __call__ File "/usr/lib/spark/python/lib/pyspark.zip/pyspark/sql/utils.py", line 134, in deco File "<string>", line 3, in raise_from pyspark.sql.utils.IllegalArgumentException: For input string: "<function true at 0x7fd215598830>"
any idea whats the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant