Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-29

Implement Flatten Reference Operator


    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0-m1
    • Component/s: None
    • Labels:


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




            • Assignee:
              cmerrick Christopher Merrick
              tnachen Timothy Chen
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: