incubator-vxquery-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Preston Carman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VXQUERY-86) Convert Collection to DataSourceScan Operator
Date Thu, 25 Apr 2013 05:08:15 GMT
Preston Carman created VXQUERY-86:
-------------------------------------

             Summary: 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

Mime
View raw message