forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(ingest/sql-queries): Add documentation (datahub-project#9406)
- Loading branch information
1 parent
f343209
commit fa02eb3
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
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,8 @@ | ||
### Example Queries File | ||
|
||
```json | ||
{"query": "SELECT x FROM my_table", "timestamp": 1689232738.051, "user": "user_a", "downstream_tables": [], "upstream_tables": ["my_database.my_schema.my_table"]} | ||
{"query": "INSERT INTO my_table VALUES (1, 'a')", "timestamp": 1689232737.669, "user": "user_b", "downstream_tables": ["my_database.my_schema.my_table"], "upstream_tables": []} | ||
``` | ||
|
||
Note that this is not a valid standard JSON file, but rather a file containing one JSON object per line. |
9 changes: 9 additions & 0 deletions
9
metadata-ingestion/docs/sources/sql-queries/sql-queries_recipe.yml
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,9 @@ | ||
datahub_api: # Only necessary if using a non-DataHub sink, e.g. the file sink | ||
server: http://localhost:8080 | ||
timeout_sec: 60 | ||
source: | ||
type: sql-queries | ||
config: | ||
platform: "snowflake" | ||
default_db: "SNOWFLAKE" | ||
query_file: "./queries.json" |
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