phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-922) Support SELECT without a from clause
Date Fri, 03 Jul 2015 16:00:05 GMT

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

James Taylor commented on PHOENIX-922:
--------------------------------------

Excellent, [~maryannxue]. Thank so much for the quick turnaround. Would you mind adding a
couple more tests:
- using a constant expression in SELECT without FROM:
{code}
SELECT 2*3*4, 5+1
{code}
- a couple of negative tests where you try to reference a column:
{code}
SELECT foo,bar
{code}
You can definitely add the negative test to QueryCompilerTest and probably the other one too
(it'll be a good test that you don't need a connection as you wouldn't have one).

+1 after those nits.

> Support SELECT without a from clause
> ------------------------------------
>
>                 Key: PHOENIX-922
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-922
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: Dan Di Spaltro
>            Assignee: Maryann Xue
>         Attachments: PHOENIX-922.patch
>
>
> You should be able to select any "generator" type function from Phoenix without specifying
a table.  For instance a sequence needs an arbitrary potentially unrelated table just to get
the next value.  The fix should enable queries like this:
> {code}
> SELECT NEXT VALUE FOR my_seq
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message