Skip to content

Commit 41ffb0a

Browse files
committed
Fixed Oracle limit SQL
1 parent 0433ccd commit 41ffb0a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dbt/include/oracle/macros/show.sql

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{#
2-
Copyright (c) 2023, Oracle and/or its affiliates.
2+
Copyright (c) 2024, Oracle and/or its affiliates.
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -21,3 +21,12 @@
2121
)
2222
fetch first {{ limit }} rows only
2323
{% endmacro %}
24+
25+
26+
{% macro oracle__get_limit_sql(sql, limit) %}
27+
select *
28+
from (
29+
{{ sql }}
30+
)
31+
fetch first {{ limit }} rows only
32+
{% endmacro %}

0 commit comments

Comments
 (0)