Skip to content

Commit

Permalink
fix yaml api and python api docs
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Bhatia <[email protected]>
  • Loading branch information
abhi8893 committed Jan 3, 2025
1 parent 6908fab commit 0a51fdb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kedro-datasets/kedro_datasets/spark/spark_gbq_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ class GBQQueryDataset(AbstractDataset[None, DataFrame]):
SELECT * FROM your_table
materialization_dataset: your_dataset
materialization_project: your_project
credentials:
bq_credentials:
file: /path/to/your/credentials.json
fs_credentials:
key: value
Example usage for the
`Python API <https://docs.kedro.org/en/stable/data/\
Expand All @@ -58,7 +60,8 @@ class GBQQueryDataset(AbstractDataset[None, DataFrame]):
... sql=sql,
... materialization_dataset="your_dataset",
... materialization_project="your_project", # optional
... credentials=dict(file="/path/to/your/credentials.json"),
... bq_credentials=dict(file="/path/to/your/credentials.json"), # optional
... fs_credentials=dict(key="value"), # optional
... )
>>>
>>> # Load data
Expand Down

0 comments on commit 0a51fdb

Please sign in to comment.