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.5K Product Ideas
- 1.5K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 283 Workbench
- 4 Cloud Amplifier
- 4 Federated
- 2.7K Transform
- 90 SQL DataFlows
- 565 Datasets
- 2K Magic ETL
- 3.4K Visualize
- 2.3K Charting
- 593 Beast Mode
- 13 App Studio
- 28 Variables
- 588 Automate
- 143 Apps
- 417 APIs & Domo Developer
- 27 Workflows
- 1 DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 361 Distribute
- 99 Domo Everywhere
- 260 Scheduled Reports
- 2 Software Integrations
- 96 Manage
- 93 Governance & Security
- 15 Product Releases
- Community Forums
- 37 Getting Started
- 28 Community Member Introductions
- 90 Community Announcements
- 4.8K Archive