Skip to content

Commit 6ab4ffd

Browse files
authored
fix: temporary fix for StreamingDataFrame not working backend bug (#1533)
1 parent c93e720 commit 6ab4ffd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bigframes/streaming/dataframe.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ def _appends_sql(self):
286286
original_table = self._original_table
287287
assert original_table is not None
288288

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

0 commit comments

Comments
 (0)