on-internet
← Community

Update on a partitioned table using context by + move succeeds but data is not updated

Stack Overflow ·

Executing an update statement on a partitioned table, using move for offsetting within groups with context by, succeeds but the data does not change. // Partitioned table, partitioned by day db = database("dfs://test", VALUE, 2025.01.01..2025.01.10) pt = db.createPartitionedTable(table(1000000:0, `date`sym`close, [DATE, SYMBOL, DOUBLE]), `pt, `date) // Write data // ... // Try update: shift close forward by 1 within each stock group update pt set close = move(close, 1) context by sym // Executes successfully, returns updated: XXX rows // But querying the table shows that close has not changed

Comments

Sign in or sign up to comment and upvote.

No comments yet.