RedisLabs / spark-redis

A connector for Spark that allows reading and writing to/from Redis cluster
BSD 3-Clause "New" or "Revised" License
936 stars 367 forks source link

using Overwrite flag on save injest the key only #343

Closed shadibch closed 1 year ago

shadibch commented 2 years ago

We tried to use the following code: aggregations.filter("id is not null").groupBy("id").agg(collect_set("imsi")). write .format("org.apache.spark.sql.redis") .option("table", "tacs") .mode(SaveMode.Overwrite) .option("ttl", 300) .option("key.column", "id") .save()

This saves the key only. We should use the Append mode flag to save the dataframe

fe2s commented 2 years ago

Hi @shadibch , could you please the sample dataframe (after the transformation) that you try to save?

shadibch commented 2 years ago

Hello The problem is not related with the dataframe Once we use the tag SaveMode.Overwrite) in any dataframe to be saved into redis it saves only the key.

fe2s commented 2 years ago

Could you provide some example I can reproduce please?

sazzad16 commented 1 year ago

Closed due to inactivity.