Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Remove doctest markers from example to avoid test failures
Signed-off-by: yassinnouh21 <yassinnouh21@gmail.com>
  • Loading branch information
YassinNouh21 committed Jan 4, 2026
commit f3eb357c78aefdcc7b2cd702149fac630392c436
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ def get_table_query_string_with_alias(self, alias: str = "subquery") -> str:
For table-based sources: the table name (no alias needed).
For query-based sources: "(query) AS alias".

Example:
>>> source = PostgreSQLSource(query="SELECT * FROM my_table", ...)
>>> entity_sql = f"SELECT id, ts FROM {source.get_table_query_string_with_alias()}"
Example::

source = PostgreSQLSource(query="SELECT * FROM my_table", ...)
entity_sql = f"SELECT id, ts FROM {source.get_table_query_string_with_alias()}"
# Results in: "SELECT id, ts FROM (SELECT * FROM my_table) AS subquery"
"""
if self._postgres_options._table:
Expand Down
Loading