Skip to content

tdfs4ds.utils.show_text

tdfs4ds.utils.show_text

The text returned by SHOW VIEW / SHOW TABLE, whole.

Teradata returns a long object text in several rows of at most 20,000 characters, cut anywhere (not at a line end): rows of 20,000 and 19,339 characters were seen for a historical dataset view with lags. Reading fetchall()[0][0] kept the first row only, so every reader of a long view (lineage, the dependency model, dataset parsing and documentation) worked on a truncated text without any error (fixed in 0.3.7.11).

No import from tdfs4ds here: every module can use it without an import cycle.

show_text

show_text(rows) -> str

The rows of a SHOW statement joined into one text ('' for no row). Pure.