Native SQL functions
Content
The latest version of FP uses Trino as the query engine, which imply slight changes in the queries' statements.
Known functions(frequent used) change:
| Previous | Current | Example |
|---|---|---|
current_date() | current_date | |
current_timestamp() | current_timestamp | |
timestamp('xxxx-xx-xx') | timestamp'xxxx-xx-xx' | |
| | Change to |
| | |
| | |
| | Change to |
| | |
| | datediff(date1,date2) Change to date_diff('day',date2,date1) |
| | Change to |
| / | Time fields cannot be compared to strings | Change to or |
group by alias | group by origin | Change to |
having alias | having origin | Change to |
| | |
str_to_date() | date_parse() | |
float | double or real | |
string | varchar | |
lag(expr, offset, default) | lag(expr, offset) | |
lead(expr, offset, default) | lead(expr, offset) |
