Skip to content

Ability to chain extraction functions to expand their functionality #1875

@vogievetsky

Description

@vogievetsky

Function composition is cool.

In Plywood/PlyQL

SELECT CONCAT('[', SUBSTR(`language`, 0, 3), ']') AS "Crazy" FROM `wikipedia` GROUP BY 1

Something like:

{
  "type": "extraction_cascade",
  "dimension": "language",
  "outputName":  "Crazy",
  "extractionFns": [
    {
      "type": "substr",
      "index": 0,
      "length": 3
    },
    {
      "type": "concat",
      "prefix": "[",
      "postfix": "]"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions