hugom
March 3, 2020, 11:17am
1
When creating physical datasets via the API, we inject a default accelerationPolicy and specify that the method should be INCREMENTAL vs the default FULL.
We would like to also specify that reflections should never refresh or expire via the API.
Is this possible?
We will be triggering the refresh for our reflections when new files have been added to the datalake using an external script, so queries should consider whatever reflections are there to be the relevant and up to date ones.
doron
March 3, 2020, 4:23pm
2
hugom
March 4, 2020, 5:40am
3
Hi Doron
Thank you, this will work for my intended use in this case.
For future reference: I assume that this means that no dataset within that source would be able to auto refresh/expire?
doron
March 4, 2020, 6:04am
4
Dataset level settings will override Source settings, but if you don’t change the settings on the dataset it will default to the source settings.
hugom
March 4, 2020, 6:18am
5
Perfect, thank you for the insight.
nehal
July 21, 2020, 4:35am
6
@doron Is there any API which lets us update reflection refresh setting at the dataset level?
ben
July 21, 2020, 3:18pm
7
1 Like
nehal
August 5, 2020, 3:10pm
9
@doron How we override never expire/never refresh for a dataset using REST API?
I only found expire/never refresh property at datasource level in the documentation
ben
August 5, 2020, 5:36pm
10
@nehal , you should be able to set the same “accelerationRefreshPolicy” for an individual physical dataset
nehal
August 5, 2020, 5:39pm
11
@ben but accelerationRefreshPolicy at dataset level only have these 4 properties
{
"refreshPeriodMs": Number,
"gracePeriodMs": Number,
"method": String ["FULL", "INCREMENTAL"],
"refreshField": String [optional]
}
How do I update the following at dataset level
accelerationNeverExpire: true
accelerationNeverRefresh: true
@nehal May I know if you found an answer to this? I was looking for a resolution for the same too.
ben
September 22, 2020, 3:52pm
13
@reshma.cs ,
There is an issue with the API that needs to be addressed, which prevents you from doing this.
See comments here for the workaround