Skip to content

Commit

Permalink
update limit_sql for trino
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Sep 1, 2024
1 parent 1fcf304 commit 4320398
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/dbio/templates/trino.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ core:
from (select * from {temp_table}) as t2
where {pk_fields_equal}
insert: insert into {table} ({cols}) values ({values})
limit: select {fields} from {table} offset {offset} limit {limit}
limit_sql: |
select * from (
{sql}
) as t offset {offset} limit {limit}
insert_temp: insert into {table} ({cols}) select {cols} from {temp_table}
insert_ignore: insert into {table} ({fields}) values ({values}) on conflict ({pk_fields}) do nothing
insert_ignore_temp: insert into {table} ({names}) select {names} from {temp_table} on conflict ({pk_fields}) do nothing
Expand Down

0 comments on commit 4320398

Please sign in to comment.