You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2013/02/01 17:10:15 UTC

[jira] [Updated] (DRILL-29) Implement Flatten Reference Operator

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

Jacques Nadeau updated DRILL-29:
--------------------------------

    Description: 
Flatten (1)

Flatten will generate one or more output records based on a single input record.  The output record will be the input record along with an appended additional appended field(s) for the flattening.  The specific behavior depends upon the type of the flatten expression provided.  In all cases, the drop parameter defines whether or not all fields referenced in the target expression are maintained in the output record or removed.
Scalar/Map: In the case that the provided expression returns a scalar or map, flatten will return a single record for each input record with one additional field at the ref location defined with the same value as the input expression.  
Array: If the provided expression returns an array, flatten will return multiple copies of the original input record where each is appended with the value within the array at the ref position.


{ @id†: <opref>,  op: “flatten”, 

  input†: <input>, 

  ref: <name>,

  expr: <expr>, 

  drop: <boolean>

}


  was:
Flatten (1)

Flatten will generate one or more output records based on a single input record.  The output record will be the input record along with an appended additional appended field(s) for the flattening.  The specific behavior depends upon the type of the flatten expression provided.  In all cases, the drop parameter defines whether or not all fields referenced in the target expression are maintained in the output record or removed.
Scalar: In the case that the provided expression returns a scalar, flatten will return a single record for each input record with one additional field at the ref location defined with the same value as the input expression.  
Array: If the provided expression returns an array, flatten will return multiple copies of the original input record where each is appended with the value within the array at the ref position.
Map: ?? (Throw)

{ @id†: <opref>,  op: “flatten”, 

  input†: <input>, 

  ref: <name>,

  expr: <expr>, 

  drop: <boolean>

}


    
> Implement Flatten Reference Operator
> ------------------------------------
>
>                 Key: DRILL-29
>                 URL: https://issues.apache.org/jira/browse/DRILL-29
>             Project: Apache Drill
>          Issue Type: New Feature
>            Reporter: Timothy Chen
>              Labels: logical
>
> Flatten (1)
> Flatten will generate one or more output records based on a single input record.  The output record will be the input record along with an appended additional appended field(s) for the flattening.  The specific behavior depends upon the type of the flatten expression provided.  In all cases, the drop parameter defines whether or not all fields referenced in the target expression are maintained in the output record or removed.
> Scalar/Map: In the case that the provided expression returns a scalar or map, flatten will return a single record for each input record with one additional field at the ref location defined with the same value as the input expression.  
> Array: If the provided expression returns an array, flatten will return multiple copies of the original input record where each is appended with the value within the array at the ref position.
> { @id†: <opref>,  op: “flatten”, 
>   input†: <input>, 
>   ref: <name>,
>   expr: <expr>, 
>   drop: <boolean>
> }

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