You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2013/02/01 02:10:12 UTC

[jira] [Commented] (ACCUMULO-1014) query language

    [ https://issues.apache.org/jira/browse/ACCUMULO-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13568331#comment-13568331 ] 

Josh Elser commented on ACCUMULO-1014:
--------------------------------------

[~ecn], are you thinking about more complex operations like group, order and/or join too?

I've seen some simple mockups that implement selection and projection using a basic REPL. Views could also be fairly easy to implement.
                
> query language
> --------------
>
>                 Key: ACCUMULO-1014
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1014
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>            Reporter: Eric Newton
>            Assignee: Billie Rinaldi
>             Fix For: 1.6.0
>
>
> Implement a query language.
> We can do some basic selection/projection and roll-up using iterators.
> I'm thinking something like:
> {noformat}
> using LatLonRow;
> SELECT * 
>  WHERE row MATCHES LatLonRow.ranges('0.0', '0.0', '0.25', '0.25')
>    AND columnFamily == 'mapLevel2'
> ;
> {noformat}
> Given a table structure, we can support the expressiveness of JEXL and the wikisearch example.
> {noformat}
> using ShardDocument;
> SELECT ShardDocument.document(row)
>  WHERE row MATCHES ShardDocument.ranges('1990-01-01', '2012-11-10')
>    AND ShardDocument.jexl(
>      'author ~= ".*Adams" and body = "don't" and body = 'panic'
>       );
> {noformat}
> I'm sure the syntax is highly suspect, but abuse of the index as well as the indexing structure ought to be something expressible to mere mortals.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira