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.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 104 SQL DataFlows
- 640 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 769 Beast Mode
- 72 App Studio
- 43 Variables
- 718 Automate
- 185 Apps
- 462 APIs & Domo Developer
- 57 Workflows
- 14 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 135 Manage
- 132 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive