https://kedro.org/ logo
#questions
Title
# questions
g

Galen Seilis

01/30/2024, 4:38 PM
Is there a way to get the string of the SQL query from a SQLDataset? I am concerned that the whole query is not being read in correctly due to bad line wrapping, so I want to check that the catalog in memory in fact has the correct query.
d

Deepyaman Datta

01/30/2024, 4:40 PM
If you get the dataset object
ds
, you can look at
ds._load_args['sql']
❤️ 1
👍 1
(You can get the dataset object, by
catalog.datasets.whatever_name
)
❤️ 1
g

Galen Seilis

01/30/2024, 4:44 PM
@Deepyaman Datta Perfect! Thank you!