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

Galen Seilis

03/08/2024, 3:46 PM
I have a SQLQueryDataset which is loading fine, but I am getting a warning I would like to address.
WARNING  Unable to get file size for the dataset SQLQueryDataset(execution_options={}, filepath=C:/path/to/data/00_scripts/dim_postal_code.sql, load_args={}, sql=None): 'str' object has no attribute 'as_posix'
So I am guessing that it has to do with the formatting of my path in YAML.
data\00_scripts\dim_postal_code.sql
What is an idiomatic way of addressing the warning?
👀 1
j

Juan Luis

03/08/2024, 3:58 PM
hmmm looks like we aren't converting a path-like parameter to a path? that seems to come from Kedro-Viz @Rashida Kanchwala @Ravi Kumar Pilla
r

Rashida Kanchwala

03/08/2024, 4:00 PM
I suppose it's to do the data stats hook?
g

Galen Seilis

03/08/2024, 4:02 PM
FWIW, I did opt-in to Kedro-Viz when I initialized the project. From my toml:
tools = ['Linting', 'Testing', 'Custom Logging', 'Documentation', 'Data Structure', 'Kedro Viz']
FYI here is my Kedro-Viz version requirements:
kedro-viz>=6.7.0
r

Ravi Kumar Pilla

03/08/2024, 4:29 PM
Hi @Galen Seilis, Thank you for raising this. As of now, you can ignore the warning but we will fix this issue in our future release. Would you be happy to open an issue ticket for the same ? Thank you
g

Galen Seilis

03/08/2024, 4:42 PM
@Ravi Kumar Pilla thanks, I appreciate you looking further into this. Feel free to ask any further questions at this issue: https://github.com/kedro-org/kedro-viz/issues/1797
👍 1
👍🏽 1
j

Júlio Resende

03/19/2024, 7:49 PM
Hello everyone! I'm getting the same warning when using pandas.DeltaTableDataset 😐
r

Ravi Kumar Pilla

03/19/2024, 7:52 PM
Hi @Júlio Resende, Thanks for reporting this. The bug seems to be not dataset specific but a generic error in handling the file path. We will be fixing this in our upcoming sprints. Thank you for your patience
👍 1
j

Júlio Resende

03/19/2024, 7:53 PM
Thanks, @Ravi Kumar Pilla