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
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive