-
Notifications
You must be signed in to change notification settings - Fork 107
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
Does the connector support scan with filtering on some column values? #34
Comments
Hi, filters are not supported. Just scan parameters (i.e. filters on the row id) can be set in the query. It should not be so difficult to add them, this can be a good idea for a contribution... |
@nicolaferraro This is one of the important features in spark-hbase connector. I can help/contribute on this but may need your help. AFAIK we need to create DefaultSource which should extend SchemaRelationProvider and create an instance of HbaseRelation. Then we may need to define the implementation of buildScan method. Since your existing implementation is not based on above approach as mentioned, I don'g get how to add support for pushdown filters. It would be good if you can help me with some pointers. |
@sachinjain024 This connector still does not support Spark SQL, it would be a major improvement. We were talking about extending the HBaseReaderBuilder to add support for filtering rows on the basis of column values. This could be done by adding some utility methods to the builder that ultimately will produce Filters for a Scan that can be passed to the runtime in some way. |
@nicolaferraro Thanks for information. This is far away from what I am intending to use. Apologies for the confusion. |
@nicolaferraro EXCITED |
Hello,
I want to get some records based on some scan filters i.e.:
column:something = "somevalue"
https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/Filter.html
Does the connector support this kind of operator? if yes, please give example.
Thank you very much,
The text was updated successfully, but these errors were encountered: