Conversation
|
Do we know what was the actual problem here? Is there a specific feature and/or bug fix in pydantic 2.12 that we are using? I had a quick look at the release notes, but nothing stood out to me as particularly relevant for us |
That's a good question... honestly I haven't had time to investigate deeper I know that it was broken with With the old version it was throwing these errors: I don't really have a hypothesis as to why this was happening and I think I should probably not spend more time on this |
Niels-b
left a comment
There was a problem hiding this comment.
Very strange things happening with the pydantic versions on Databricks 🤔 .
Ok for me to pin this version if that fixes everything 👌
|
Took a look at what caused this. We're using a feature that was introduced in pydantic 2.11, so naturally it breaks with older versions. To be more specific, we configure class DataSourceBase(BaseModel, abc.ABC):
model_config = ConfigDict(
frozen=True,
extra="forbid",
validate_by_name=True, # Allow to use both field names and aliases when populating from dict
)
connection_properties: DataSourceConnectionProperties = Field(
..., alias="connection", description="Data source connection details"
)We define
That is exactly what pydantic reports in the output @paulteehan shared: Formatted for readability: i.e. In summary: this isn't a bug in the databricks runtimes nor pydantic. It's just us messing up our versioning. |
|
Updated to |
|
Nicely done @mivds !!! Really appreciate the deep dive, it's great to have an actual explanation for this |
|




Description
Pins pydnatic to 2.12 or higher. Solves errors when using Soda in Databricks runtime. No expected downstream impact.
Any expected impact on downstream packages/services?
No
Reference issue # if available.
https://sodadata.slack.com/archives/C08C1LTSTB7/p1769705177363319
Checklist