Hi! I just discovered that if I use a custom resol...
# questions
e
Hi! I just discovered that if I use a custom resolver in parameters, (using it in catalog have no problem) kedro-viz die. The object returned is not friendly for kedro-viz
Copy code
"polars": lambda x: getattr(pl, x)
Copy code
pydantic_core._pydantic_core.PydanticSerializationError: Unable to serialize unknown type: <class 'polars.datatypes.classes.DataTypeClass'>
2024-07-30 09:15:55,489 - uvicorn.error - ERROR - Exception in ASGI application
Any workaround? Could be a bad practice to have parameters of type
polars.datatypes.classes.DataTypeClass
?
👀 1
r
Hi @Erwin, Thank you for raising the issue. Would you be happy to provide more details (to reproduce the bug at our end) and raise an issue here ? We will have a look at the issue soon.
n
Can you try to replace it with a function instead of lambda?
r
Hi @Erwin, Thank you for reporting this. This is a bug on Viz and I have created a ticket to address this issue. Please feel free to add more context if needed.