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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive