I need to query HTTP/JSON datasource with parameters like this:
/values?Name=Foobar&Start=2024-01-16&End=2024-01-17 (the previous and the current days)
so I create a Base view with relative URL like this:
/values?Name=Foobar&Start=@start&End=@end
and then I try to use functions for START and END variables, e.g:
START: FORMATDATE('yyyy-MM-dd', ADDDAY(now(), -1)) (Is this correct for yesturday??)
END: FORMATDATE('yyyy-MM-dd', now())
but denodo uses formulas as a plaintext:
Unable to obtain the data structure:
com.denodo.util.exceptions.InternalErrorException:
Error retrieving data from '.../values?Name=Foobar&End=FORMATDATE('yyyy-MM-dd',%20now())'.
HTTP error code: 404.
What is the correct way to do this?
This question was answered at Denodo Community website with Denodo team
UPD
For beginners, the least obvious item may be the one about "create a new view named
dates", I still don't know the correct way, too=) So you can create any type of View in the UI, open it's VQL editor and put this code there: