#docs #tql

Dimension Spec

DimensionSpecs define how dimension values get transformed prior to aggregation.

The default DimensionSpec returns dimension values as is and optionally renames the dimension.

If an extraction function is set, it returns dimension values transformed using the given extraction function.

Default DimensionSpec

Returns dimension values as is and optionally renames the dimension.

{
  "type" : "default",
  "dimension" : <dimension>,
  "outputName": <output_name>,
  "outputType": <"STRING"|"LONG"|"FLOAT">
}

Extraction DimensionSpec

Returns dimension values transformed using the given extraction function.

{
  "type" : "extraction",
  "dimension" : <dimension>,
  "outputName" :  <output_name>,
  "outputType": <"STRING"|"LONG"|"FLOAT">,
  "extractionFn" : <extraction_function>
}