table
Select specific fields to display in the output, in the specified order.
Syntax
| table <field> [, <field> ...]
Examples
-- Select specific columns
level=error | table _time, source, message
-- After aggregation
| stats count, avg(duration_ms) by uri | sort -count | table uri, count, avg(duration_ms)
-- Rename inline with stats, then table
| stats count as requests, p99(duration_ms) as p99_lat by uri | table uri, requests, p99_lat
Notes
tableis equivalent tofieldswith only include mode.- Column order in the output matches the order specified in the command.
- The optimizer uses
tablefor column pruning -- only referenced columns are read from storage.