Skip to content

SqlQuery

Source code in docs_src/capo_context/types/sql_query.py
class SqlQuery(TypedDict, closed=True):
    statement: "capo_context.types.sql_statement.SqlStatement"
    """<p>One read-only SELECT or WITH statement, without a trailing <code>;</code>, in PostgreSQL-compatible SQL as the query engine parses it. Double-quote every identifier: unquoted identifiers are upper-cased and matching is case-sensitive. Reference each table by its quoted, fully qualified AWS Glue table ARN, for example <code>SELECT "order_id" FROM "arn:aws:glue:us-east-1:111122223333:table/db/orders" LIMIT 10</code>. At most 50,000 rows are returned whatever the statement's own LIMIT.</p>"""
    tables: "capo_context.types.sql_table_reference_list.SqlTableReferenceList"
    """<p>Every table the statement reads. The service does not parse the SQL to find tables, and the engine resolves only the tables listed here.</p>"""

statement instance-attribute

statement: SqlStatement

One read-only SELECT or WITH statement, without a trailing ;, in PostgreSQL-compatible SQL as the query engine parses it. Double-quote every identifier: unquoted identifiers are upper-cased and matching is case-sensitive. Reference each table by its quoted, fully qualified AWS Glue table ARN, for example SELECT "order_id" FROM "arn:aws:glue:us-east-1:111122223333:table/db/orders" LIMIT 10. At most 50,000 rows are returned whatever the statement's own LIMIT.

tables instance-attribute

Every table the statement reads. The service does not parse the SQL to find tables, and the engine resolves only the tables listed here.