dbt-for-apache-doris 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. dbt_for_apache_doris-1.1.0/LICENSE +201 -0
  2. dbt_for_apache_doris-1.1.0/MANIFEST.in +33 -0
  3. dbt_for_apache_doris-1.1.0/NOTICE +14 -0
  4. dbt_for_apache_doris-1.1.0/PKG-INFO +285 -0
  5. dbt_for_apache_doris-1.1.0/README.md +246 -0
  6. dbt_for_apache_doris-1.1.0/UPSTREAM.md +41 -0
  7. dbt_for_apache_doris-1.1.0/dbt/adapters/doris/__init__.py +33 -0
  8. dbt_for_apache_doris-1.1.0/dbt/adapters/doris/__version__.py +25 -0
  9. dbt_for_apache_doris-1.1.0/dbt/adapters/doris/column.py +73 -0
  10. dbt_for_apache_doris-1.1.0/dbt/adapters/doris/connections.py +269 -0
  11. dbt_for_apache_doris-1.1.0/dbt/adapters/doris/doris_column_item.py +54 -0
  12. dbt_for_apache_doris-1.1.0/dbt/adapters/doris/impl.py +515 -0
  13. dbt_for_apache_doris-1.1.0/dbt/adapters/doris/relation.py +84 -0
  14. dbt_for_apache_doris-1.1.0/dbt/include/doris/__init__.py +23 -0
  15. dbt_for_apache_doris-1.1.0/dbt/include/doris/dbt_project.yml +24 -0
  16. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/adapters/columns.sql +341 -0
  17. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/adapters/freshness.sql +23 -0
  18. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/adapters/grants.sql +138 -0
  19. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/adapters/metadata.sql +113 -0
  20. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/adapters/relation.sql +269 -0
  21. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/adapters/schema.sql +32 -0
  22. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/adapters/unit_testing.sql +56 -0
  23. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/incremental/help.sql +1060 -0
  24. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/incremental/incremental.sql +672 -0
  25. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/incremental/strategies.sql +91 -0
  26. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/materialized_view/materialized_view.sql +1200 -0
  27. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/seed/helpers.sql +68 -0
  28. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/snapshot/materialization.sql +212 -0
  29. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/snapshot/snapshot.sql +440 -0
  30. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/snapshot/strategies.sql +34 -0
  31. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/table/create_table_as.sql +266 -0
  32. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/table/table.sql +130 -0
  33. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/view/create_view_as.sql +65 -0
  34. dbt_for_apache_doris-1.1.0/dbt/include/doris/macros/materializations/view/view.sql +54 -0
  35. dbt_for_apache_doris-1.1.0/dbt/include/doris/profile_template.yml +42 -0
  36. dbt_for_apache_doris-1.1.0/dbt/include/doris/sample_profiles.yml +27 -0
  37. dbt_for_apache_doris-1.1.0/dbt_for_apache_doris.egg-info/PKG-INFO +285 -0
  38. dbt_for_apache_doris-1.1.0/dbt_for_apache_doris.egg-info/SOURCES.txt +84 -0
  39. dbt_for_apache_doris-1.1.0/dbt_for_apache_doris.egg-info/dependency_links.txt +1 -0
  40. dbt_for_apache_doris-1.1.0/dbt_for_apache_doris.egg-info/requires.txt +2 -0
  41. dbt_for_apache_doris-1.1.0/dbt_for_apache_doris.egg-info/top_level.txt +1 -0
  42. dbt_for_apache_doris-1.1.0/dev-requirements.txt +54 -0
  43. dbt_for_apache_doris-1.1.0/pyproject.toml +3 -0
  44. dbt_for_apache_doris-1.1.0/pytest.ini +26 -0
  45. dbt_for_apache_doris-1.1.0/scripts/run_doris_functional_tests.py +488 -0
  46. dbt_for_apache_doris-1.1.0/setup.cfg +4 -0
  47. dbt_for_apache_doris-1.1.0/setup.py +68 -0
  48. dbt_for_apache_doris-1.1.0/test/__init__.py +19 -0
  49. dbt_for_apache_doris-1.1.0/test/conftest.py +172 -0
  50. dbt_for_apache_doris-1.1.0/test/doris_test.env +33 -0
  51. dbt_for_apache_doris-1.1.0/test/e2e_version_evidence.py +193 -0
  52. dbt_for_apache_doris-1.1.0/test/functional/__init__.py +16 -0
  53. dbt_for_apache_doris-1.1.0/test/functional/adapter/__init__.py +16 -0
  54. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_basic.py +94 -0
  55. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_connection.py +112 -0
  56. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_contract.py +316 -0
  57. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_cross_database.py +232 -0
  58. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_freshness.py +184 -0
  59. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_grants.py +182 -0
  60. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_hooks.py +60 -0
  61. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_incremental.py +3306 -0
  62. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_materialized_view.py +849 -0
  63. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_materialized_view_basic.py +150 -0
  64. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_materialized_view_complete.py +331 -0
  65. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_persist_docs.py +572 -0
  66. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_seed.py +142 -0
  67. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_snapshot.py +858 -0
  68. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_store_failures.py +120 -0
  69. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_table.py +299 -0
  70. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_unit_test.py +150 -0
  71. dbt_for_apache_doris-1.1.0/test/functional/adapter/test_doris_view.py +113 -0
  72. dbt_for_apache_doris-1.1.0/test/unit/__init__.py +19 -0
  73. dbt_for_apache_doris-1.1.0/test/unit/macro_harness.py +280 -0
  74. dbt_for_apache_doris-1.1.0/test/unit/test_adapter_api.py +159 -0
  75. dbt_for_apache_doris-1.1.0/test/unit/test_adapter_config.py +103 -0
  76. dbt_for_apache_doris-1.1.0/test/unit/test_connection_manager.py +143 -0
  77. dbt_for_apache_doris-1.1.0/test/unit/test_e2e_version_evidence.py +287 -0
  78. dbt_for_apache_doris-1.1.0/test/unit/test_functional_test_runner.py +428 -0
  79. dbt_for_apache_doris-1.1.0/test/unit/test_incremental.py +518 -0
  80. dbt_for_apache_doris-1.1.0/test/unit/test_macro_behavior.py +1391 -0
  81. dbt_for_apache_doris-1.1.0/test/unit/test_macro_syntax.py +82 -0
  82. dbt_for_apache_doris-1.1.0/test/unit/test_materialized_view.py +2004 -0
  83. dbt_for_apache_doris-1.1.0/test/unit/test_packaging.py +91 -0
  84. dbt_for_apache_doris-1.1.0/test/unit/test_relation.py +107 -0
  85. dbt_for_apache_doris-1.1.0/test/unit/test_snapshot.py +112 -0
  86. dbt_for_apache_doris-1.1.0/tox.ini +44 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python
2
+ # encoding: utf-8
3
+
4
+ # Licensed to the Apache Software Foundation (ASF) under one
5
+ # or more contributor license agreements. See the NOTICE file
6
+ # distributed with this work for additional information
7
+ # regarding copyright ownership. The ASF licenses this file
8
+ # to you under the Apache License, Version 2.0 (the
9
+ # "License"); you may not use this file except in compliance
10
+ # with the License. You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing,
15
+ # software distributed under the License is distributed on an
16
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ # KIND, either express or implied. See the License for the
18
+ # specific language governing permissions and limitations
19
+ # under the License.
20
+
21
+ include LICENSE
22
+ include NOTICE
23
+ include README.md
24
+ include UPSTREAM.md
25
+ include pyproject.toml
26
+ include pytest.ini
27
+ include tox.ini
28
+ include dev-requirements.txt
29
+ prune docs
30
+ recursive-include dbt/include *.sql *.yml
31
+ recursive-include scripts *.py
32
+ recursive-include test *.py
33
+ include test/doris_test.env
@@ -0,0 +1,14 @@
1
+ dbt-for-apache-doris
2
+
3
+ This product includes software developed at
4
+ The Apache Software Foundation (https://www.apache.org/).
5
+
6
+ Portions of this product are derived from the dbt-doris component of
7
+ Apache Doris:
8
+ https://github.com/apache/doris/tree/master/extension/dbt-doris
9
+
10
+ Apache Doris
11
+ Copyright 2018-2026 The Apache Software Foundation
12
+
13
+ This distribution is maintained by the VeloDB community and is not an official
14
+ Apache Software Foundation release.
@@ -0,0 +1,285 @@
1
+ Metadata-Version: 2.4
2
+ Name: dbt-for-apache-doris
3
+ Version: 1.1.0
4
+ Summary: A dbt adapter for VeloDB and Apache Doris
5
+ Home-page: https://github.com/velodb/dbt-for-apache-doris
6
+ Author: Apache Doris contributors
7
+ Maintainer: VeloDB contributors
8
+ License: Apache-2.0
9
+ Project-URL: Documentation, https://github.com/velodb/dbt-for-apache-doris#readme
10
+ Project-URL: Issues, https://github.com/velodb/dbt-for-apache-doris/issues
11
+ Project-URL: Source, https://github.com/velodb/dbt-for-apache-doris
12
+ Project-URL: Upstream, https://github.com/apache/doris/tree/master/extension/dbt-doris
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ License-File: NOTICE
25
+ Requires-Dist: dbt-core~=1.12.0
26
+ Requires-Dist: mysql-connector-python>=8.0.33
27
+ Dynamic: author
28
+ Dynamic: classifier
29
+ Dynamic: description
30
+ Dynamic: description-content-type
31
+ Dynamic: home-page
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: maintainer
35
+ Dynamic: project-url
36
+ Dynamic: requires-dist
37
+ Dynamic: requires-python
38
+ Dynamic: summary
39
+
40
+ # dbt for Apache Doris
41
+
42
+ [![CI](https://github.com/velodb/dbt-for-apache-doris/actions/workflows/ci.yml/badge.svg)](https://github.com/velodb/dbt-for-apache-doris/actions/workflows/ci.yml)
43
+ ![Python](https://img.shields.io/badge/Python-%3E%3D3.10-blue)
44
+ ![dbt Core](https://img.shields.io/badge/dbt--core-1.12.x-orange)
45
+ [![License](https://img.shields.io/badge/License-Apache--2.0-blue)](https://github.com/velodb/dbt-for-apache-doris/blob/main/LICENSE)
46
+
47
+ `dbt-for-apache-doris` enables Python dbt Core projects to transform data in
48
+ Apache Doris through the Doris MySQL protocol. It is maintained by the VeloDB
49
+ community.
50
+
51
+ > [!IMPORTANT]
52
+ > This adapter is **Beta**. CI covers lint, Unit tests, and package validation,
53
+ > but not a live Doris cluster. Current-release compatibility and VeloDB
54
+ > verification are pending.
55
+
56
+ **[Installation](#installation)** · **[Quickstart](#quickstart)** ·
57
+ **[Compatibility](#compatibility)** ·
58
+ **[dbt docs](https://docs.getdbt.com/)** ·
59
+ **[Doris docs](https://doris.apache.org/docs/)** ·
60
+ **[Issues](https://github.com/velodb/dbt-for-apache-doris/issues)** ·
61
+ **[Releases](https://github.com/velodb/dbt-for-apache-doris/releases)**
62
+
63
+ ## Supported capabilities
64
+
65
+ Status: ✅ Supported · ❌ Not supported
66
+
67
+ Feature status and database-version compatibility are separate contracts.
68
+ `Supported` means the documented scope is implemented and tested; explicit
69
+ platform boundaries are described alongside each capability.
70
+
71
+ ### Materializations
72
+
73
+ | Capability | Status | Current support and boundaries |
74
+ | --- | --- | --- |
75
+ | Table | ✅ Supported | Duplicate Key CTAS; configurable HASH distribution, integer buckets, RANGE/LIST partitions, properties, contracts, docs, grants, and hooks. Unique Key creation belongs to incremental `merge` |
76
+ | View | ✅ Supported | Standard lifecycle, contracts, docs, grants, and hooks; relation-type switching is not zero-downtime |
77
+ | Incremental | ✅ Supported | Four strategies and every `on_schema_change` mode; boundaries are listed below |
78
+ | Snapshot | ✅ Supported | `check`/`timestamp`, hard-delete modes, schema evolution, atomic replacement, and recovery; same-target runs must be serialized by the scheduler |
79
+ | Materialized view | ✅ Supported | Standard dbt `materialized_view`, implemented with Doris Async MV; build/refresh lifecycle, task waiting, configuration changes, atomic replacement, and recovery. Same-target dbt runs must be serialized by the scheduler |
80
+ | Seed | ✅ Supported | CSV loading, type inference, `column_types`, and `ref` |
81
+ | Ephemeral | ✅ Supported | Compiled and inlined by dbt Core |
82
+
83
+ ### dbt capabilities
84
+
85
+ | Capability | Status | Current support and boundaries |
86
+ | --- | --- | --- |
87
+ | Sources and freshness | ✅ Supported | `loaded_at_field`, filter, and `loaded_at_query`; cross-database uses database-as-schema, not External Catalog |
88
+ | Data tests | ✅ Supported | Singular, generic, ephemeral, and `store_failures` paths |
89
+ | dbt Unit tests | ✅ Supported | Inline-row and CSV fixtures, case-insensitive columns, invalid-input validation, quoted reserved words, Doris-adapted data-type fixtures, and non-truncating VARCHAR fixtures |
90
+ | Model contracts | ✅ Supported | Column names/types for Table, View, and Incremental; not database PK/NOT NULL constraints |
91
+ | Persisted docs | ✅ Supported | Relation and column comments for Table, View, Incremental, Snapshot, Seed, and Async MV; updating View comments or comment text containing both quote delimiters may require recreation/full refresh |
92
+ | Grants | ✅ Supported | Reconciles supported Doris table privileges for `user` and `user@host` principals on Table, View, Incremental, Seed, Snapshot, and Async MV; role principals are not reconciled |
93
+ | Hooks | ✅ Supported | Pre-hooks and post-hooks across adapter materializations; Doris does not provide transactional rollback for hook side effects |
94
+ | Internal metadata and dbt docs catalog | ✅ Supported | Relation discovery and docs catalog for Doris databases, tables, views, columns, comments, and Async MVs |
95
+ | Cross-database sources | ✅ Supported | Sources in other Doris databases, including database-only source definitions; External Catalog three-part names are not supported |
96
+ | Advanced metadata / External Catalog | ❌ Not supported | Catalogs V2, metadata-by-relation, single-relation catalog, last-modified metadata, and External Catalog three-part namespaces are not declared |
97
+
98
+ ## Compatibility
99
+
100
+ | Component | Declared or runtime constraint | Current evidence or status |
101
+ | --- | --- | --- |
102
+ | Python | `>=3.10` | Unit CI covers 3.10 and 3.14; the distribution-build job uses 3.12 |
103
+ | dbt Core | `>=1.12,<1.13` | Declared lower bound is 1.12.0; Python dbt Core v1 only. Fusion/v2 compatibility is not claimed |
104
+ | MySQL connector | `>=8.0.33` | Installed automatically with the adapter |
105
+ | Apache Doris | No package-wide minimum has been declared | Historical exact-release evidence exists, but the current release-candidate SHA still needs a complete live matrix |
106
+ | Async MV | Doris 2.x >=2.1.5; Doris 3.x except 3.0.0; Doris 4.x+ | This runtime gate is not a whole-adapter compatibility guarantee. Identifiable source builds are accepted for development testing only |
107
+ | VeloDB | No release range has been declared | Release-specific live-cluster verification is pending |
108
+
109
+ Before production use, run Functional tests against your exact release and
110
+ topology. Historical results are not a current-release compatibility promise.
111
+
112
+ ## Installation
113
+
114
+ Install the VeloDB-maintained distribution from PyPI:
115
+
116
+ ```shell
117
+ python -m venv .venv
118
+ source .venv/bin/activate
119
+ python -m pip install "dbt-for-apache-doris==1.1.0"
120
+ dbt --version
121
+ ```
122
+
123
+ > [!WARNING]
124
+ > The separate [`dbt-doris==1.0.0` distribution on
125
+ > PyPI](https://pypi.org/project/dbt-doris/1.0.0/) does not contain the code
126
+ > from this repository. Install `dbt-for-apache-doris` as shown above.
127
+
128
+ On Windows, create the environment with `py -m venv .venv`, activate it using
129
+ `.venv\Scripts\Activate.ps1`, and run the same `pip install` command.
130
+
131
+ The adapter declares dbt Core and the MySQL connector as dependencies, so they
132
+ are installed automatically. You do not need to install dbt Core separately or
133
+ download a standalone binary.
134
+
135
+ ## Quickstart
136
+
137
+ Add a Doris output to `~/.dbt/profiles.yml`. Keep credentials outside version
138
+ control; this example reads the password from an environment variable:
139
+
140
+ ```yaml
141
+ doris_demo:
142
+ target: dev
143
+ outputs:
144
+ dev:
145
+ type: doris
146
+ host: 127.0.0.1
147
+ port: 9030
148
+ username: root
149
+ password: "{{ env_var('DORIS_PASSWORD') }}"
150
+ schema: analytics
151
+ threads: 4
152
+ ```
153
+
154
+ On Doris, `schema` is a database; an optional `database` must match it.
155
+
156
+ Create a new `doris-demo` directory with a `models` subdirectory, then add:
157
+
158
+ ```yaml
159
+ # dbt_project.yml
160
+ name: doris_demo
161
+ version: 1.0.0
162
+ config-version: 2
163
+ profile: doris_demo
164
+ model-paths: ["models"]
165
+ ```
166
+
167
+ ```sql
168
+ -- models/example.sql
169
+ {{ config(materialized='table', replication_num=1) }}
170
+ select 1 as id, 'hello from dbt-for-apache-doris' as message
171
+ ```
172
+
173
+ ```yaml
174
+ # models/schema.yml
175
+ version: 2
176
+ models:
177
+ - name: example
178
+ columns:
179
+ - name: id
180
+ data_tests: [not_null, unique]
181
+ ```
182
+
183
+ `replication_num=1` is only for a local single-BE Quickstart.
184
+
185
+ ```shell
186
+ export DORIS_PASSWORD='<your-password>'
187
+ dbt debug
188
+ dbt build
189
+ ```
190
+
191
+ On Windows PowerShell, set the password with
192
+ `$env:DORIS_PASSWORD = '<your-password>'`, then run the same dbt commands.
193
+
194
+ ## Doris-specific highlights
195
+
196
+ ### Incremental strategies
197
+
198
+ | Strategy | Doris target | Behavior and boundaries |
199
+ | --- | --- | --- |
200
+ | `append` | Duplicate Key table | Appends rows with `INSERT INTO` |
201
+ | `merge` | MOW or MOR Unique Key table | Full-row `INSERT INTO` upsert using Doris Unique Key semantics; requires `unique_key` and does not emit SQL `MERGE INTO` |
202
+ | `insert_overwrite` | Writable Doris table | Whole-table, named-partition, or dynamic-partition `INSERT OVERWRITE`; `unique_key` is rejected |
203
+ | `microbatch` | Duplicate Key table with exact RANGE partitions | One named-partition overwrite per dbt Core UTC window; hour/day/month/year windows; static or dynamic partitions; batches run serially |
204
+
205
+ Without an explicit strategy, `unique_key` selects `merge`; otherwise dbt uses
206
+ `append`. `delete+insert`, partial-column merge, and `incremental_predicates`
207
+ are rejected.
208
+
209
+ ### Materialized views
210
+
211
+ Use dbt's standard `materialized_view` materialization. The adapter implements
212
+ it with Doris Async MV and exposes Doris-specific refresh configuration:
213
+
214
+ ```sql
215
+ {{ config(
216
+ materialized='materialized_view',
217
+ refresh_trigger='manual',
218
+ wait_for_refresh=true
219
+ ) }}
220
+
221
+ select order_date, sum(amount) as sales
222
+ from {{ ref('orders') }}
223
+ group by order_date
224
+ ```
225
+
226
+ Supported lifecycles include immediate/deferred build, manual/schedule/commit
227
+ refresh, task waiting, configuration changes, docs, grants, and recovery.
228
+ Overlapping dbt runs against the same MV target must be serialized, and a dbt
229
+ wait timeout does not cancel a submitted Doris task.
230
+
231
+ ## Known limitations
232
+
233
+ - Microbatch execution is serial.
234
+ - Do not run multiple dbt invocations against the same Snapshot target concurrently;
235
+ serialize overlapping production jobs in the scheduler.
236
+ - Serialize overlapping dbt runs against the same MV target; a dbt wait timeout
237
+ does not cancel the submitted Doris task.
238
+ - Ordinary `table` models create Duplicate Key tables. Aggregate Key modeling,
239
+ secondary indexes, and a complete Doris table abstraction are not implemented.
240
+ - `delete+insert`, partial-column merge, and `incremental_predicates` are not
241
+ supported.
242
+ - A complete External Catalog namespace is unsupported.
243
+ - SSL configuration, timeout/retry, multi-FE failover, server-side cancellation,
244
+ and complete query telemetry are not implemented.
245
+ - Some Table/View/MV type changes have a short canonical-name availability
246
+ window rather than a zero-downtime switch.
247
+
248
+ ## Development and testing
249
+
250
+ Install development dependencies, then run local checks:
251
+
252
+ ```shell
253
+ python -m pip install -r dev-requirements.txt
254
+ python -m pip install -e .
255
+ make lint
256
+ make test-unit
257
+ ```
258
+
259
+ Functional tests need a dedicated non-production cluster. Edit
260
+ `test/doris_test.env`; use an external file for private credentials:
261
+
262
+ ```shell
263
+ make test
264
+ make test DORIS_TEST_CONFIG=/secure/path/doris_test.env
265
+ ```
266
+
267
+ Preflight records live FE/BE versions, checks replication against live BEs, and
268
+ requires `cross_db_test` to be absent. Tests create/drop databases, relations,
269
+ users, and grants, so the account needs those permissions. Never use a shared
270
+ or production cluster or run Functional sessions concurrently.
271
+
272
+ ```shell
273
+ python scripts/run_doris_functional_tests.py --preflight-only
274
+ python scripts/run_doris_functional_tests.py -- -k snapshot -vv
275
+ ```
276
+
277
+ The runner records evidence about the connected cluster but does not certify a
278
+ release compatibility matrix.
279
+
280
+ ## License
281
+
282
+ The code is licensed under Apache License 2.0. See the
283
+ [license](https://github.com/velodb/dbt-for-apache-doris/blob/main/LICENSE),
284
+ [notice](https://github.com/velodb/dbt-for-apache-doris/blob/main/NOTICE), and
285
+ [migration provenance](https://github.com/velodb/dbt-for-apache-doris/blob/main/UPSTREAM.md).