Method

OmniTrackBuilderappend_group_field_with_sql

Declaration

OmniGroupFieldBuilder*
omni_track_builder_append_group_field_with_sql (
  OmniTrackBuilder* self,
  const gchar* sql
)

Description

Append a subtrack grouping field.

sql must be an SQL expression in the following form:

  • "field_name": Use the value of the input field named field_name for grouping.

A visualizer in this track is considered subtrack-compatible if the visualizer type supports subtracks and every input stream subject to subtrack grouping contains all columns referenced by sql. sql must evaluate to the same type for every subtrack-compatible visualizer in this track.

If OmniTrackBuilder:group-values is set, sql must evaluate to the same type as the corresponding column in that record batch. Calling this method N times requires group_values to contain N columns. If this method is never called, grouping field specifications are inferred from group_values without additional constraints.

If OmniTrackBuilder:group-values is null, calling this method enables dynamic subtracks. The session creates a subtrack for each grouping key discovered in the input streams of subtrack-compatible visualizers. .

Parameters

sql

Type: const gchar*

No description available.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: OmniGroupFieldBuilder

No description available.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.