Skip to content

fix: temporary fix for StreamingDataFrame not working backend bug #1533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 25, 2025
Merged
Changes from all commits
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
3 changes: 2 additions & 1 deletion bigframes/streaming/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def _appends_sql(self):
original_table = self._original_table
assert original_table is not None

appends_clause = f"APPENDS(TABLE `{original_table}`, NULL, NULL)"
# TODO(b/405691193): set start time back to NULL. Now set it slightly after 7 days max interval to avoid the bug.
appends_clause = f"APPENDS(TABLE `{original_table}`, CURRENT_TIMESTAMP() - (INTERVAL 7 DAY - INTERVAL 5 MINUTE))"
sql_str = sql_str.replace(f"`{original_table}`", appends_clause)
return sql_str

Expand Down