apache_beam.testing.benchmarks.tpcds.tpcds_queries module

TPC-DS SQL query loader and table identifier extraction.

apache_beam.testing.benchmarks.tpcds.tpcds_queries.get_all_query_names() → List[str][source]

Returns all 103 TPC-DS query names (query1 .. query99 including a/b variants).

apache_beam.testing.benchmarks.tpcds.tpcds_queries.normalize_query_name(q: str) → str[source]

Normalizes ‘3’, ‘03’, ‘q03’, ‘query3’ -> ‘query3’.

apache_beam.testing.benchmarks.tpcds.tpcds_queries.parse_query_selection(queries_arg: str) → List[str][source]

Parses a –queries argument (‘canonical13’, ‘supported’, ‘all’, or comma-separated list).

apache_beam.testing.benchmarks.tpcds.tpcds_queries.read_query(query_name: str, queries_dir: str | None = None) → str[source]

Reads a TPC-DS SQL query by name (e.g. ‘query3’ or ‘3’) from tpcds/build/queries.

apache_beam.testing.benchmarks.tpcds.tpcds_queries.get_query_tables(query_sql: str) → List[str][source]

Extracts the TPC-DS table names referenced in the given SQL query.