← API reference
CANONICAL TYPE REFERENCE

DataScriptPreview

Preview of data returned by a Lua data query script

Column information from the stage-transformed data source

sampleRows[[String!]!]!

Sampled emitted rows as string arrays, up to sampleLimit; NULL cells are empty strings, not numeric zero

Number of emitted rows sampled, capped by sampleLimit; not the total number in the full training source

Stage type-check diagnostics (unknown fields, bad returns)

errorString

Error message if script execution failed

View exact SDL
"""Preview of data returned by a Lua data query script"""
type DataScriptPreview {
  """Column information from the stage-transformed data source"""
  columns: [DataColumnInfo!]!
  """
  Sampled emitted rows as string arrays, up to sampleLimit; NULL cells are empty strings, not numeric zero
  """
  sampleRows: [[String!]!]!
  """
  Number of emitted rows sampled, capped by sampleLimit; not the total number in the full training source
  """
  totalRows: Int!
  """Stage type-check diagnostics (unknown fields, bad returns)"""
  diagnostics: [PipelineDiagnostic!]!
  """Error message if script execution failed"""
  error: String
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.