Skip to content

Commit

Permalink
chore(risingwave): allow reuse of postgres get_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 4, 2024
1 parent 03f5dfe commit b6b0e1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/postgres/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def _post_connect(self) -> None:
cur.execute("SET TIMEZONE = UTC")

@property
def _session_temp_db(self):
def _session_temp_db(self) -> str | None:
# Postgres doesn't assign the temporary table database until the first
# temp table is created in a given session.
# Before that temp table is created, this will return `None`
Expand Down
6 changes: 6 additions & 0 deletions ibis/backends/risingwave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,3 +586,9 @@ def drop_sink(
)
with self._safe_raw_sql(src):
pass

@property
def _session_temp_db(self) -> str | None:
# Return `None`, because RisingWave does not implement temp tables like
# Postgres
return None

0 comments on commit b6b0e1d

Please sign in to comment.