Skip to main content
read_text reads UTF-8 text and log files and returns one row per line. Each row has the line’s text in content.

Signature

Supported extensions: .txt and .log.

Example

Columns

A leading UTF-8 byte-order mark is removed. Invalid UTF-8 bytes become the replacement character (�) instead of failing the query. Empty lines are kept as rows with empty content.

Execution

  • When the query doesn’t select line_number, Chowder reads large files in parallel chunks.
  • Selecting line_number reads each file in order, so line numbers stay correct.
  • LIMIT stops reading once the query has enough rows.
  • Memory use stays bounded. Chowder holds one chunk plus the longest line at a time.