[
https://issues.apache.org/jira/browse/HBASE-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102107#comment-13102107
]
Anirudh Todi commented on HBASE-4361:
-------------------------------------
Thanks Stack for pinging me about the Filter Language!
1. Todd, I think your test failed because the way I wrote my code, the
arguments needed to be enclosed in single quotes. I know it is in the
documentation I sent out, however, it may not have been highlighted. I don't
see how I would parse the filterString if the entire filterString is enclosed
in double quotes and some of the arguments are enclosed in double quotes too?
2. Regarding the incorrect order of arguments specified in the documentation
for SingleColumnValueFilter, I apologize about that - the filter language went
through several iterations and I may have overlooked updating the documentation
in one place. I can take a look at it over the weekend and check the
documentation again
3. Better error messages? - I can try and improve this. Are there any specific
points I can address to improve what is already there?
4. Writing the filter parsing using antlr or javacc, I doubt I will have time
to do that during the school semester. It's something I could potentially look
into during the winter break. However, I leave this to your discretion.
Hope the Filter Language is benefiting the community!
> Certain filter expressions fail in the shell
> --------------------------------------------
>
> Key: HBASE-4361
> URL: https://issues.apache.org/jira/browse/HBASE-4361
> Project: HBase
> Issue Type: Bug
> Components: filters, shell
> Affects Versions: 0.92.0
> Reporter: Todd Lipcon
> Priority: Critical
> Fix For: 0.92.0
>
> Attachments: small-improvements.txt
>
>
> Running the following in the shell hangs and then fails:
> {noformat}
> scan 't1', { FILTER => "SingleColumnValueFilter(">", '1', 'f1', 'col_a')" }
> {noformat}
> The error seems to be: org.jruby.exceptions.RaiseException: (NoMethodError)
> undefined method `write' for true:TrueClass
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira