Data appending not working
Am trying to append the data using replacement variables but when the query is run the result is not the corect one.
(eg)
Scenario 1:
Query used:
Select * from t1
where time_stamp>'!{lastvalue:time_stamp}!'
order by time_stamp asc
time stamp value is null for the first run and hence all the records are loaded
After the inital run ,i see the time_stamp value has been updated in the curent value column of the replacement variable which is the last value found in the table.
Now when i run the job am expecting the Query to return no rows but the entire data is returned and true duplicate data is appened.
Scenario 1:
Select * from t1
where time_stamp>'!{lastvalue:time_stamp}!'
order by time_stamp desc
time stamp value is null for the first run and hence all the records are loaded
Ater the first run i see the time_stamp value has been updated in the curent value column of the replacement variable which is the first value found in the table.
Now when i run the job am expecting the Query to return the entire data but there are no rows returned.
I find this logically incorect as
Select * from t1 where time_stamp> max_time_stamp order by time_stamp asc , should return any result..
I think this is a bug , please advise other wise.
My aim is to use the replacement variable to capture only the incremental records.
Comments
-
Is anyone able to help out with this request?
0 -
I have run into the same issue. I have added an incremental id to the dataset which I am importing and am hoping that this will work instead of a timevalue. My end goal is to have an update based on last modified data and the incremental id. Which is currently not feasible with workbench according to another post (linked below)
https://dojo.domo.com/t5/Workbench/Re-Update-a-single-row-in-dataset/td-p/21561
0
Categories
- 10.5K All Categories
- 5 Connect
- 915 Connectors
- 250 Workbench
- 459 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 476 Datasets
- 186 Visualize
- 250 Beast Mode
- 2.1K Charting
- 11 Variables
- 16 Automate
- 354 APIs & Domo Developer
- 88 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 245 Distribute
- 62 Domo Everywhere
- 242 Scheduled Reports
- 20 Manage
- 41 Governance & Security
- 170 Product Ideas
- 1.2K Ideas Exchange
- 10 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive