如何在leftJoinWithCassandraTable之后选择和添加列

时间:2019-10-26 04:48:44

标签: apache-spark join cassandra

我想离开联接Cassandra表,并尝试leftJoinWithCassandraTable(期望得到下推式)。我想做类似的事情:

some_dataframe
.rdd
.leftJoinWithCassandraTable("ks", "some_table")
.on(SomeColumns("col1", "col2"))
//.add new col here with (case when right_table.col1 is null then 0 else 1 end.
//.select some col from left table, and some col from right table
//.saveToCassandra

但是我不能使评论部分起作用。有人可以帮忙吗?

谢谢

0 个答案:

没有答案