hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Inchul Song (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1720) [HbaseShell] Addition of HQL (Hbase Query Language) support in Hbase Shell
Date Sat, 18 Aug 2007 11:20:30 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520840
] 

Inchul Song commented on HADOOP-1720:
-------------------------------------

The delete() method in HTable seems not working. 
After implementing the DELETE syntax, I've tested if it works. However,
the deleted cells still show up in the result of SELECT.

Need further investigation.

{noformat}
HBase > select movie;
+------+----------------------+----------------------+----------------------+
| No.  | Row                  | Column               | Cell                 | 
+------+----------------------+----------------------+----------------------+
| 1    | Star Wars            | length:              | 124                  |
+------+----------------------+----------------------+----------------------+
| 2    | Star Wars            | year:                | 1977                 |
+------+----------------------+----------------------+----------------------+

Successfully print out the selected data.(30.22 sec)

HBase > delete length: from movie where row='Star Wars';
07/08/16 22:26:54 INFO shell.DeleteCommand: Deleting length:...
Column(s) deleted successfully.(0.01 sec)

HBase > select movie;
+------+----------------------+----------------------+----------------------+
| No.  | Row                  | Column               | Cell                 | 
+------+----------------------+----------------------+----------------------+
| 1    | Star Wars            | length:              | 124                  |
+------+----------------------+----------------------+----------------------+
| 2    | Star Wars            | year:                | 1977                 |
+------+----------------------+----------------------+----------------------+

Successfully print out the selected data.(0.05 sec)
HBase > 
{noformat}

> [HbaseShell] Addition of HQL (Hbase Query Language) support in Hbase Shell
> --------------------------------------------------------------------------
>
>                 Key: HADOOP-1720
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1720
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>         Environment: all environments
>            Reporter: Inchul Song
>            Priority: Minor
>             Fix For: 0.15.0
>
>         Attachments: hql_v01.patch, hql_v02.patch
>
>
> We have defined the HQL (Hbase Query Language), which is a "more" SQL-like query language
for Hbase, for use in Hbase Shell. HQL is not intended to fully support the SQL syntax and
semantics. HQL, instead, is developed to make it easy to manipulate tables in Hbase through
the Hbase Shell command line, without using programming APIs.
> You can find more information about HQL in http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell/HQL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message