You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Wail Alkowaileet (JIRA)" <ji...@apache.org> on 2016/01/20 21:40:39 UTC

[jira] [Updated] (ASTERIXDB-1270) Apply function on an open type throws "Unsupported type UNION(NULL, [ null: open { id: [ ANY ] } ])"

     [ https://issues.apache.org/jira/browse/ASTERIXDB-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wail Alkowaileet updated ASTERIXDB-1270:
----------------------------------------
    Description: 
To reproduce:

DDL:
{noformat}
create dataverse wosDataverse
use dataverse wosDataverse
create type wosType as open {
	UID: string
}
create dataset wos(wosType)
primary key UID
{nofrmat}

AQL:
{noformat}
use dataverse wosDataverse
let $c := (for $x in dataset wos
let $id := $x.id
group by $country := $x.country with $id
return {"country":$country, "id" : $id})

return count($c.id)
{noformat}

  was:
To reproduce:

DDL:
{noformat}
create dataverse wosDataverse
use dataverse wosDataverse
create type wosType as open {
	UID: string
}
create dataset wos(wosType)
primary key UID
{nofrmat}

AQL:
{noformat}
use dataverse wosDataverse
let $c := (for $x in dataset wos
let $id := $x.id
group by $country := $x.country with $id
return {"country":$country, "id" : $id})

return count($c.id)
{nofrmat}


> Apply function on an open type throws "Unsupported type UNION(NULL, [ null: open {   id: [ ANY ] }  ])"
> -------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-1270
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1270
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: Functions - AQL, Hyracks
>            Reporter: Wail Alkowaileet
>
> To reproduce:
> DDL:
> {noformat}
> create dataverse wosDataverse
> use dataverse wosDataverse
> create type wosType as open {
> 	UID: string
> }
> create dataset wos(wosType)
> primary key UID
> {nofrmat}
> AQL:
> {noformat}
> use dataverse wosDataverse
> let $c := (for $x in dataset wos
> let $id := $x.id
> group by $country := $x.country with $id
> return {"country":$country, "id" : $id})
> return count($c.id)
> {noformat}



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