dbt_core_experimental_parser 2.0.0.dev14__py3-none-macosx_11_0_arm64.whl

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.
@@ -0,0 +1,230 @@
1
+ Metadata-Version: 2.1
2
+ Name: dbt-core-experimental-parser
3
+ Version: 2.0.0.dev14
4
+ Summary: With dbt, data analysts and engineers can build analytics the way engineers build applications.
5
+ Requires-Python: >=3.9
6
+ Classifier: Programming Language :: Rust
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: MacOS :: MacOS X
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Topic :: Software Development :: Build Tools
13
+ Project-URL: Homepage, https://getdbt.com
14
+ Project-URL: Repository, https://github.com/dbt-labs/dbt-fusion
15
+ Author-email: dbt Labs <info@dbtlabs.com>
16
+ Description-Content-Type: text/markdown
17
+
18
+ <div style="text-align: center;">
19
+ <img src="assets/dbt-fusion-engine.png" alt="dbt Fusion Engine" width="400" style="border-radius: 6px;" />
20
+ </div>
21
+
22
+ ---
23
+
24
+ # dbt F✦SION engine (BETA)
25
+
26
+ This repo hosts components of the dbt Fusion engine, the foundation for future innovation in `dbt`. The dbt Fusion engine is written in Rust and is designed for speed, correctness, and has a native understanding of SQL across multiple data warehouse SQL dialects.
27
+
28
+ > [!IMPORTANT]
29
+ > **Note: the dbt Fusion Engine is in Beta!**
30
+
31
+ Bugs and missing functionality compared to dbt Core will be resolved continuously in the leadup to a final release (more info: [the dbt Fusion Engine: the Path to GA](https://docs.getdbt.com/blog/dbt-fusion-engine-path-to-ga)).
32
+
33
+ The dbt Fusion engine is a ground up, first principles rewrite of the dbt Core execution engine, built to be interoperable with the standard dbt authoring layer. Fusion enforces some ambiguous areas of the authoring spec more strictly than dbt Core to ensure correctness (for example, dbt Core does not proactively validate most YAML configurations). Many of these discrepancies can be fixed automatically with the [dbt Autofix](https://github.com/dbt-labs/dbt-autofix) tool.
34
+
35
+ Beyond conformance with dbt Core, Fusion also contains new SQL Comprehension capabilities, a language server, modern ADBC drivers for warehouse connections, and more. While dbt Core was written in Python, the dbt Fusion engine is written in Rust, and compiled to a single application binary.
36
+
37
+ You can install dbt-fusion onto your local machine, a docker container, or a machine in the cloud. It is designed for flexible installation, with no dependencies on other libraries. The only libraries that dbt Fusion will load are it's corresponding database drivers.
38
+
39
+ The dbt Fusion engine is being released to this repository incrementally, so, until this note is removed this repository contains only a subset of the crates that make the core of the engine work. These crates are published incrementally starting on May 28.
40
+
41
+ ## Getting Started with the dbt Fusion engine
42
+
43
+ > [!TIP]
44
+ > You don't have to build this project from source to use the new dbt! We recommend using the precompiled binary with additional capabilities:
45
+
46
+ There are several ways to get started with Fusion (for more, see the [Quickstart for the dbt Fusion engine](https://docs.getdbt.com/guides/fusion?step=1))
47
+ 1. **Download dbt the vs-code extension** - For most people the best experience. This will install the dbt fusion CLI and Language Server on your system - see the docs page: [Install the dbt VS Code extension](https://docs.getdbt.com/docs/install-dbt-extension).
48
+ 2. **Install Fusion Directly** Install just the fusion CLI with the command below or see dbt's documentation: [About Fusion installation](https://docs.getdbt.com/docs/fusion/install-fusion)
49
+
50
+ ``` bash
51
+ curl -fsSL https://public.cdn.getdbt.com/fs/install/install.sh | sh -s -- --update
52
+ ```
53
+
54
+ 3. **Build Fusion from Source** - See the below section: [Compiling from Source](#compiling-from-source)
55
+
56
+
57
+ ### Supported Operating Systems and CPU Microarchitectures
58
+ Fusion & associated drivers are compiled for each CPU microarchitecture and operating system independently. This allows for hardware level optimization.
59
+
60
+ Legend:
61
+ * 🟒 - Supported today
62
+ * 🟑 - Unsupported today
63
+
64
+ | Operating System | X86-64 | ARM |
65
+ |-------------------|----------|------|
66
+ | MacOS | 🟒 | 🟒 |
67
+ | Linux | 🟒 | 🟒 |
68
+ | Windows | 🟒 | 🟑 |
69
+
70
+
71
+ ## Timeline
72
+
73
+ | Target Date | Milestone | Description |
74
+ |-------------|-----------------------------|---------------------------------------------------------------------------------|
75
+ | 2025-05-28 | Initial release of Fusion | Published source code of parser, schemas, dbt-jinja, and Snowflake ADBC driver |
76
+ | 2025-06-09 | Databricks Adapter release | Databricks ADBC driver, and adapter for Fusion |
77
+ | 2025-06-30 | BigQuery Adapter release | BigQuery ADBC driver, and adapter for Fusion |
78
+ | 2025-07-31 | Redshift Adapter release | Redshift ADBC driver, and adapter for Fusion |
79
+ | 2025-09-30 | OSS Adapters | Adapter components published under Apache 2.0 license |
80
+ | TBD | ANTLR Grammars | SQL dialect grammars used by the ANTLR parser generator |
81
+
82
+ ### Top Level Components Released to Date
83
+ Releases of various Fusion components will be iterative as each component reaches maturity & readiness for contribution.
84
+
85
+ - [x] `dbt-jinja` - All Rust extension of mini-jinja to support dbt's jinja functions & other capabilities
86
+ - [x] `dbt-parser` - Rust parser for dbt projects
87
+ - [x] `dbt-schemas` - Complete, correct, machine-generated jsonschemas for dbt's properties and configurations
88
+ - [x] `dbt-adapter` - adapters for supported data warehouses
89
+ - [x] snowflake
90
+ - [x] databricks
91
+ - [x] bigquery
92
+ - [x] redshift
93
+ - [x] `dbt-xdbc` - Rust wrapper for ADBC and ODBC drivers
94
+ - [x] `dbt-auth` - Auth for all supported warehouses and database systems
95
+ - [x] `dbt-agate` - Rust port of the Python agate library
96
+ - [ ] `dbt-sql` - ANTLR grammars and generated parsers
97
+ - [ ] bigquery.g4
98
+ - [ ] databricks.g4
99
+ - [ ] redshift.g4
100
+ - [ ] snowflake.g4
101
+ - [ ] Fusion: comprehensive release of the (source-available) dbt Fusion engine.
102
+
103
+ ## FAQ
104
+
105
+ <details>
106
+ <summary><i>Can I contribute to the dbt Fusion engine?</i></summary>
107
+
108
+ Yes absolutely!. Please see [`CONTRIBUTING.md`](CONTRIBUTING.md) for contribution guidelines
109
+ </details>
110
+
111
+ <details>
112
+ <summary><i>How is dbt Fusion different from dbt Core?</i></summary>
113
+ The dbt Fusion engine is a ground-up rewrite of dbt Core, with many additional capabilities.
114
+ *Things that are the same:*
115
+ * The YML authoring format including profiles, configuration, seeds, data tests, and unit tests
116
+ * The materialization libraries
117
+ * dbt's library managemenet system (although `dbt deps` are installed automatically)
118
+
119
+ *Additional capabilities provided by Fusion:*
120
+ * All new Arrow Database Connector (ADBC) drivers for faster data transfers and unified connection handling
121
+ * A language server and corresponding VS-Code extension (compatible with Cursor) for ease of development
122
+ * Multi-dialect SQL compilation, validation, & static analysis
123
+ * Standalone distribution. No JVM, or python required.
124
+ * Automatic installation of dependencies, whether that's a dbt package, or database driver
125
+ * dbt code-signed & secure distributions
126
+ </details>
127
+
128
+ <details>
129
+ <summary><i>This repo doesn't have all of dbt's functionality, when will the rest come?</i></summary>
130
+ dbt Fusion's source code is being published as components are finalized. Please see the above section: [Timeline](#timeline).
131
+ </details>
132
+
133
+ <details>
134
+ <summary><i>Can I use dbt Fusion today?</i></summary>
135
+
136
+ | State | Description | Workaround | Resolvable by |
137
+ |--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|---------------|
138
+ | Unblocked | You can adopt the dbt Fusion engine with no changes to your project | --- | --- |
139
+ | Soft blocked | Your project contains functionality (for more info: [How to get ready for the new dbt engine](https://www.getdbt.com/blog/how-to-get-ready-for-the-new-dbt-engine). | Resolve deprecations with the dbt-autofix script or workflow in dbt Studio | Users |
140
+ | Hard blocked | Your project contains Python models or uses a not-yet-supported adapter | Remove unsupported functionality if possible | dbt Labs |</details>
141
+
142
+
143
+
144
+ ## Compiling from Source
145
+
146
+ The primary CLI in this repository is the `dbt-sa-cli`. To compile the CLI, you need the Rust toolchain.
147
+
148
+ Let's start with Rust, run the following command to install Rust on your machine:
149
+
150
+ Linux:
151
+
152
+ ```shell
153
+ sudo ./scripts/setup_dev_env_linux.sh
154
+ ```
155
+
156
+ Mac:
157
+
158
+ ```shell
159
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
160
+ ```
161
+
162
+ Great! We have Rust installed. To confirm, run the following command:
163
+
164
+ ```shell
165
+ cargo -v
166
+ ```
167
+
168
+ You should see a printout like:
169
+ ```
170
+ Rust's package manager
171
+
172
+ Usage: cargo [+toolchain] [OPTIONS] [COMMAND]
173
+ cargo [+toolchain] [OPTIONS] -Zscript <MANIFEST_RS> [ARGS]...
174
+
175
+ Options:
176
+ -V, --version Print version info and exit
177
+ ...
178
+ ```
179
+
180
+ Cargo is Rust's build system and package manager. If you're familiar with Python, pip would be a sufficient comparison. We'll use cargo to run command to build the local `dbt-sa-cli` binary and run helper scripts via `cargo xtask`. More on that later.
181
+
182
+ To build the binary locally, `cd` to the this repo's directory and run:
183
+
184
+ ```shell
185
+ cargo build
186
+ ```
187
+
188
+ This will compile our Rust code into the `dbt-sa-cli` binary. After this completes, you should see a new executable in `target/debug/dbt-sa-cli`. You can run this executable by passing the path directly into the CLI, so if you're in the root of this git repo, you can run:
189
+
190
+ ```shell
191
+ target/debug/dbt-sa-cli
192
+ ```
193
+
194
+ If built correctly, you should see output like:
195
+ ```shell
196
+ > ./target/debug/dbt
197
+ Usage: dbt <COMMAND>
198
+
199
+ Commands:
200
+ parse Parse models
201
+ ...
202
+ ```
203
+
204
+ You might be wondering why it was built into the `debug` directory - this is because our default profile is `debug` when running `cargo build`. Our `debug` profile compiles the code faster, but sacrifices optimizations to do so. Therefore, if you want to benchmark the parser, build with the flag `cargo build --release`. The compile will take longer, but the build will mimic the experience of the end user.
205
+
206
+ If you expect to use this executable often, we recommend creating an alias for it in your `~/.zshrc`. To do so, start by getting the absolute path to the executable with:
207
+
208
+ ```shell
209
+ cd target/debug && pwd
210
+ ```
211
+
212
+ ## Running Tests
213
+
214
+ To run tests, increase the stack size and use nextest.
215
+
216
+ ```
217
+ RUST_MIN_STACK=8388608 cargo nextest run --no-fail-fast
218
+ ```
219
+
220
+ # License
221
+ The dbt Fusion engine is a monorepo and contains more than one License. Most code is licensed under ELv2. For more, please see [`LICENSES.md`](LICENSES.md).
222
+
223
+ # Acknowledgments
224
+ *To the dbt community:* dbt the tool & dbt Labs the company would not be here without the incredible community of authors, contributors, practitioners, and enthusiasts. dbt Fusion is an evolution of that work & stands on the shoulders of what has come before.
225
+
226
+ *To the Arrow Community:* dbt Labs is committing fully to the Arrow ecosystem. Fusion exclusively uses the Arrow type system from drivers through adapters into the internals of the compiler & runtime.
227
+
228
+ *To the DataFusion Community:* The intermediate representation of the SQL compiler is the DataFusion logical plan which has proven to be pragmatic, extensible, and easy to work with in all the right ways.
229
+
230
+ Thank you all. dbt, Arrow, and DataFusion have become truly global software projects. dbt Labs is committed to contributing meaningfully to these efforts over the coming months and years.
@@ -0,0 +1,4 @@
1
+ dbt_core_experimental_parser-2.0.0.dev14.data/scripts/dbt-core-experimental-parser,sha256=VQPks-oDHWYkZbnBtQHRQADFUdw-nIMK9NiQ2JrLTrE,77086880
2
+ dbt_core_experimental_parser-2.0.0.dev14.dist-info/METADATA,sha256=6nfb37qL6WKV_c2hIKVlEjaFKNQsbWvaF7M2yDlHZZ8,12493
3
+ dbt_core_experimental_parser-2.0.0.dev14.dist-info/WHEEL,sha256=m6h1BgaBQlt8lio4Il2F_GYybV2RxVvy5TlsHFSbmo8,92
4
+ dbt_core_experimental_parser-2.0.0.dev14.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: dbt-ci
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-macosx_11_0_arm64