-
Notifications
You must be signed in to change notification settings - Fork 919
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
Implemented where that have individual clause for each row. #1053
base: master
Are you sure you want to change the base?
Conversation
Hi @crakjie, thanks for your contribution! In order for us to evaluate and accept your PR, we ask that you sign Spark Cassandra Connector CLA. It's all electronic and will take just minutes. |
Thank you @crakjie for signing the Spark Cassandra Connector CLA. |
Can you write a little bit of the use case for this api? I took a brief look today (sorry so busy) and I think it's a very cool Idea but i'm having a hard time thinking about how someone would actually use it? |
Hmm I think it can do possibility to join as below standard SQL query tb1 (RDD) tb2 (table in Cassandra) Now as I know when I do joinwithCassandraTable I will receive |
I had this idea because I have to do a join over timestamp but not == timestamp. The database was contening timestamp older than the left RDD. And each element of the left RDD was containing the information about how old RDD the element have to be joined with. So to do that I had to have an information contained in each left element. So the general idea was to be able to modify the where close depending on each input elements. I still don't know if the type of the "fwhere" function is good or if it can be simplified. Actually the function has to return an internal scc object .. |
I'm wondering if we might be better off with just another api, like a generic "RunPreparedStatements" Which would be something like
Of which then the Joins become a child class of? |
@RusselSpitzer +1 to that idea. This would be a really great addition, giving users very strong flexibility on RDD processing. |
Back from hollydays. |
I think we should pause on this and instead focus on making completely flexible function. Like I described above, that way we don't increase the complexity of the code as is and are able to introduce a greater amount of flexibility. |
Added individual clause to the joins where.
This allow this kind of syntax :
Of course the syntax un the where can be enhance, it's why it's open to review.