Redis return null value to id column

363 views Asked by At

I'm write a dataframe to redis and read the data with spring boot application. The information retry successfull, but the id column return null like that:

{ "nu_document": null, "qt_negative": "1000000000" }

1

There are 1 answers

5
Avisha On

Had same issue. you might be missing

.option("key.column", "nu_document")

from your read method. Check out the link https://github.com/RedisLabs/spark-redis/blob/master/doc/dataframe.md.