Skip to content
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

where clause only support equal condition? #8

Open
colorant opened this issue Jul 29, 2013 · 6 comments
Open

where clause only support equal condition? #8

colorant opened this issue Jul 29, 2013 · 6 comments
Assignees
Milestone

Comments

@colorant
Copy link

say with following query in wasp shell

query "select * from user where user_id=1" works
+----------+-----------+
| user_id | name |
+----------+-----------+
| 1 | binlijin |
+----------+-----------+

while
query "select * from user where user_id>0"

ERROR: java.sql.SQLException: org.apache.wasp.jdbc.JdbcException: Operate a not supported sql: "Don't get a Index!" [90170-1]

@jaywong85
Copy link
Contributor

nope.
wasp support range condition. but only in index query.
it means we must create a index. such as (user_name and age)
then we can : query "select * from user where user_name='abc' and age > 20"

@colorant
Copy link
Author

ok i c, though this still seem strange to me, user_id is a primary key, still need index's help...?

@colorant
Copy link
Author

And , then
if I run

wasp(main):072:0> query "select * from user where name='binlijin'"

ERROR: java.sql.SQLException: org.apache.wasp.jdbc.JdbcException: Operate a not supported sql: "Don't get a Index!" [90170-1]

This is what the following wiki want to explained? :

1 当前版本支持构建索引的查询,即,没有构建索引的查询在本版本中尚不支持.

@jaywong85
Copy link
Contributor

yep. 2 implementation in our design. so. primary key not similar with index

@colorant
Copy link
Author

I see that primary key is part of hbase row-key, and this should also be sort able

I can not even create index for PK, then range scan on PK filed is not possilbe?

@jaywong85
Copy link
Contributor

as U say. it is possible, but at the moment wasp not support. may be supported later.

thx for your report

@ghost ghost assigned jaywong85 Jul 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants