# SqlOutputStatement

SQL statement that produces a DataStream output

**Type**: `object`

## Properties

- name: eventTimeAttribute (optional)
  type: string

- name: materialized (optional)
  type: boolean

- name: outputName (required)
  type: string
  description: Name of the output stream that this statement produces. Used to identify the output DataStream in the SqlStatementsExecutor results. Must be unique across all OUTPUT statements within the operation.

- name: outputType (required)
  type: enum: `VARIANT`, `LOG_EVENT`, `COMPLETE_SPAN`, `METRIC_DATA`, `WIDE_METRIC_DATA`
  description: Data types that are acceptable as inputs and outputs to SQL operations. See [SQL transform supported data types](/transforms/sql-transform/data-types) for the SQL row schemas. The `COMPLETE_SPAN` SQL row schema uses SQL field names that differ from the REST JSON property names documented in [CompleteSpan](/apis/api-spec#schema/CompleteSpan).

- name: sqlQuery (required)
  type: string
  description: The SQL query to execute. Can reference tables created by previous statements by their tableName, as well as the 'traces' input table and available datasets.
