-
Notifications
You must be signed in to change notification settings - Fork 989
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'current' into new-branch-name-VE
- Loading branch information
Showing
18 changed files
with
375 additions
and
25 deletions.
There are no files selected for viewing
240 changes: 240 additions & 0 deletions
240
website/blog/2025-01-24-sql-comprehension-technologies.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
website/docs/faqs/Troubleshooting/long-sessions-cloud-cli.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: "I'm getting a \"Session occupied\" error in dbt Cloud CLI?" | ||
description: "How to debug long-running sessions in dbt Cloud CLI" | ||
sidebar_label: 'Debug long-running sessions in dbt Cloud CLI' | ||
id: long-sessions-cloud-cli | ||
--- | ||
|
||
If you're receiving a `Session occupied` error in the dbt Cloud CLI or if you're experiencing a long-running session, you can use the `dbt invocation list` command in a separate terminal window to view the status of your active session. This helps debug the issue and identify the arguments that are causing the long-running session. | ||
|
||
To cancel an active session, use the `Ctrl + Z` shortcut. | ||
|
||
To learn more about the `dbt invocation` command, see the [dbt invocation command reference](/reference/commands/invocation). | ||
|
||
Alternatively, you can reattach to your existing session with <code>dbt reattach</code> and then press <code>Control-C</code> and choose to cancel the invocation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
title: "About dbt invocation command" | ||
sidebar_label: "invocation" | ||
id: invocation | ||
--- | ||
|
||
The `dbt invocation` command is available in the [dbt Cloud CLI](/docs/cloud/cloud-cli-installation) and allows you to: | ||
- List active invocations to debug long-running or hanging invocations. | ||
- Identify and investigate sessions causing the `Session occupied` error. | ||
- Monitor currently active dbt commands (like `run`, `build`) in real-time. | ||
|
||
The `dbt invocation` command only lists _active invocations_. If no sessions are running, the list will be empty. Completed sessions aren't included in the output. | ||
|
||
## Usage | ||
|
||
This page lists the command and flag you can use with `dbt invocation`. To use them, add a command or option like this: `dbt invocation [command]`. | ||
|
||
Available flags in the command line interface (CLI) are [`help`](#dbt-invocation-help) and [`list`](#dbt-invocation-list). | ||
|
||
### dbt invocation help | ||
|
||
The `help` command provides you with the help output for the `invocation` command in the CLI, including the available flags. | ||
|
||
```shell | ||
dbt invocation help | ||
``` | ||
|
||
or | ||
|
||
```shell | ||
dbt help invocation | ||
``` | ||
|
||
The command returns the following information: | ||
|
||
```bash | ||
dbt invocation help | ||
Manage invocations | ||
|
||
Usage: | ||
dbt invocation [command] | ||
|
||
Available Commands: | ||
list List active invocations | ||
|
||
Flags: | ||
-h, --help help for invocation | ||
|
||
Global Flags: | ||
--log-format LogFormat The log format, either json or plain. (default plain) | ||
--log-level LogLevel The log level, one of debug, info, warning, error or fatal. (default info) | ||
--no-color Disables colorization of the output. | ||
-q, --quiet Suppress all non-error logging to stdout. | ||
|
||
Use "dbt invocation [command] --help" for more information about a command. | ||
``` | ||
|
||
### dbt invocation list | ||
|
||
The `list` command provides you with a list of active invocations in your dbt Cloud CLI. When a long-running session is active, you can use this command in a separate terminal window to view the active session to help debug the issue. | ||
|
||
```shell | ||
dbt invocation list | ||
``` | ||
|
||
The command returns the following information, including the `ID`, `status`, `type`, `arguments`, and `started at` time of the active session: | ||
|
||
```bash | ||
dbt invocation list | ||
|
||
Active Invocations: | ||
ID 6dcf4723-e057-48b5-946f-a4d87e1d117a | ||
Status running | ||
Type cli | ||
Args [run --select test.sql] | ||
Started At 2025-01-24 11:03:19 | ||
|
||
➜ jaffle-shop git:(test-cli) ✗ | ||
``` | ||
|
||
:::tip | ||
|
||
To cancel an active session in the terminal, use the `Ctrl + Z` shortcut. | ||
|
||
::: | ||
|
||
## Related docs | ||
|
||
- [Install dbt Cloud CLI](/docs/cloud/cloud-cli-installation) | ||
- [Troubleshooting dbt Cloud CLI 'Session occupied' error](/faqs/Troubleshooting/long-sessions-cloud-cli) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+162 KB
website/static/img/blog/2025-01-24-sql-comprehension-technologies/binder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78.2 KB
website/static/img/blog/2025-01-24-sql-comprehension-technologies/compiler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 KB
...ic/img/blog/2025-01-24-sql-comprehension-technologies/full_translation_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+150 KB
website/static/img/blog/2025-01-24-sql-comprehension-technologies/logical_plan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+108 KB
website/static/img/blog/2025-01-24-sql-comprehension-technologies/parser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.9 KB
...tic/img/blog/2025-01-24-sql-comprehension-technologies/sentence_syntax_tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+109 KB
...e/static/img/blog/2025-01-24-sql-comprehension-technologies/sql_syntax_tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.