phoenix-dev mailing list archives

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


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:
SELECT 2*3*4, 5+1
- a couple of negative tests where you try to reference a column:
SELECT foo,bar
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:
>             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}
> {code}

This message was sent by Atlassian JIRA

View raw message