Closed jeromatron closed 8 years ago
Would you want to just specify a WHERE clause, sort of like: -where "X = 100" or -where "Y = 100 ALLOW FILTERING"
Yes - something of a predicate. Someone mentioned exporting the change from the last 24 hours which is presumably in the data itself. So perhaps "where registered_date > '2016-05-09".
+1
Is this feature added to unloader??
any updates? It seems this forum is in-active :-1:
I have not added this feature yet. I've been focused on some other areas on the loading side. I may be able to do something like this in the (near?) future.
It should be relatively simple to add a way to specify a clause and use that in the query underneath. PRs are welcome :) I don't know when I'll be able to get to it either right now.
Will wait for this feature
This has been added to v0.0.19.
how to use this ? e.g cassandra-unloader -f zz -host my_machine -numThreads 1 -schema "keyspacedirectory.tbl_emp(empid, name, surname)
What are you trying to accomplish? The new argument is -where: cassandra-unloader -f zz -host my_machine -numThreads 1 -schema "keyspacedirectory.tbl_emp(empid, name, surname)" -where "empid = 12345"
thanks. I was looking for syntax.
It would be nice to specify a query predicate for the unloader, for periodic dumps of specific ranges of data.