You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by "Preston Carman (JIRA)" <ji...@apache.org> on 2013/05/03 23:12:16 UTC

[jira] [Commented] (VXQUERY-86) Convert Collection to DataSourceScan Operator

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

Preston Carman commented on VXQUERY-86:
---------------------------------------

Added the requirement of unnest back to the rewrite rule. It looks like now the system work for FLWOR expressions with collection as the source.

The issue remains for collection without the FLWOR expression.
                
> Convert Collection to DataSourceScan Operator
> ---------------------------------------------
>
>                 Key: VXQUERY-86
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-86
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>            Assignee: Vinayak Borkar
>
> The example query has three files in the collection. It seems to be something related to the definition of the data source scan operator.
> Query: count(collection("path-to-folder"))
> RESULT with data source scan
> 1
> 1
> 1
> INFO: Optimized Plan:
> write [%0->$$4]
> -- SINK_WRITE  |PARTITIONED|
>   exchange 
>   -- BROADCAST_EXCHANGE  |PARTITIONED|
>     unnest $$4 <- function-call: vxquery:{urn:org.apache.vxquery.operators-ext}iterate, Args:[%0->$$3]
>     -- UNNEST  |PARTITIONED|
>       assign [$$3] <- [function-call: vxquery:{http://www.w3.org/2005/xpath-functions}count, Args:[function-call: vxquery:{urn:org.apache.vxquery.operators-ext}treat, Args:[%0->$$2, {http://www.w3.org/2001/XMLSchema}int QUANT_ONE(bytes[5] = [1d000000e9])]]]
>       -- ASSIGN  |PARTITIONED|
>         exchange 
>         -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
>           data-scan []<-[$$2] <- org.apache.vxquery.metadata.VXQueryCollectionDataSource@6498985e
>           -- DATASOURCE_SCAN  |PARTITIONED|
>             exchange 
>             -- ONE_TO_ONE_EXCHANGE  |PARTITIONED|
>               empty-tuple-source
>               -- EMPTY_TUPLE_SOURCE  |PARTITIONED|
> RESULT with OUT data source scan
> 3
> INFO: Optimized Plan:
> write [%0->$$4]
> -- SINK_WRITE  |UNPARTITIONED|
>   exchange 
>   -- BROADCAST_EXCHANGE  |PARTITIONED|
>     unnest $$4 <- function-call: vxquery:{urn:org.apache.vxquery.operators-ext}iterate, Args:[%0->$$3]
>     -- UNNEST  |UNPARTITIONED|
>       assign [$$3] <- [function-call: vxquery:{http://www.w3.org/2005/xpath-functions}count, Args:[function-call: vxquery:{urn:org.apache.vxquery.operators-ext}treat, Args:[function-call: vxquery:{http://www.w3.org/2005/xpath-functions}collection, Args:[function-call: vxquery:{urn:org.apache.vxquery.operators-ext}promote, Args:[function-call: vxquery:{http://www.w3.org/2005/xpath-functions}data, Args:[%0->$$1], {http://www.w3.org/2001/XMLSchema}int QUANT_ONE(bytes[5] = [1d00000007])]], {http://www.w3.org/2001/XMLSchema}int QUANT_ONE(bytes[5] = [1d000000e9])]]]
>       -- ASSIGN  |UNPARTITIONED|
>         assign [$$1] <- [{http://www.w3.org/2001/XMLSchema}string QUANT_ONE(bytes[66] = [04003f2f55736572732f70726573746f6e6361726d616e2f446f63756d656e74732f776f726b73706163652d73766e2f776561746865722d74656e2d66696c65732f])]
>         -- ASSIGN  |UNPARTITIONED|
>           empty-tuple-source
>           -- EMPTY_TUPLE_SOURCE  |UNPARTITIONED|

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira