Extract SQLs from digdag log
Project description
digdaglog2sql
Install
pip install --user digdaglog2sql
or,
$ python -m venv .venv
$ source .venv/bin/activate
(.venv)$ pip install digdaglog2sql
Usage
$ digdaglog2sql --help
Usage: digdaglog2sql [OPTIONS]
Options:
--input FILENAME Option is mutually exclusive with session_id,
site.
--session-id INTEGER Session ID of workflow. Option is mutually
exclusive with input.
--site [us|jp|eu01|ap02|ap03] Option is mutually exclusive with input.
--output FILENAME [required]
--drop-cdp-db If true, drop cdp_audience_xxx DB name.
--help Show this message and exit.
You can use log file on local environment.
digdaglog2sql --input workflow-log.txt --output output.sql
Or, you can use Session ID of Treasure Workflow.
digdaglog2sql --session-id 12345 --site us --output output.sql
Ensure set TD_API_KEY
into environment variable.
Note
As of May 5 2022, if you want to use sqllineage for Trino and Hive logs from Treasure Data, recommend to install sqlparse and sqllineage as the following:
pip install git+https://github.com/chezou/sqlparse.git@trino#egg=sqlparse==0.4.3.dev0
pip install git+https://github.com/chezou/sqllineage.git@trino#egg=sqllineage==1.3.4
You have to ensure to have node environment for sqllineage installation from source.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
digdaglog2sql-0.0.2.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file digdaglog2sql-0.0.2.tar.gz
.
File metadata
- Download URL: digdaglog2sql-0.0.2.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 332e20ddb938972cc0a8a7b7f86f6790a3babc6c7b3012b01692e3cf0f0f000c |
|
MD5 | c10579fc18221918495e1b66ab91c48d |
|
BLAKE2b-256 | ae7459a27d8d2ff8238b853096e0f1d9a2cbc3ed6b5bf571cd1ac900d2650b7c |
File details
Details for the file digdaglog2sql-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: digdaglog2sql-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045f231f6219e68d6420279ec65a9338ef8fb25a4f1ed6cc6eb7b79bcb0ae981 |
|
MD5 | 99f25652e0a2b656404266917f10d35a |
|
BLAKE2b-256 | 485a22263720e762b6a558c49d90f4d9d8cdf6c574ab604d8a23891f2c6ab35a |