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

Serhiy Bilousov commented on PHOENIX-922:
-----------------------------------------

Is it expectation of this query to work here too?
SELECT * FROM 
(
   SELECT 'a' AS col 
   UNION ALL
   SELECT 'b' AS col 
   UNION ALL
   SELECT 'c' AS col 
) t

or even just
   SELECT 'a' AS col 
   UNION ALL
   SELECT 'b' AS col 
   UNION ALL
   SELECT 'c' AS col 

> 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)

Reply via email to