druid-io / pydruid

A Python connector for Druid
Other
505 stars 194 forks source link

Feature idea: Leverage pydantic for query validation #277

Open GuidoTournois opened 2 years ago

GuidoTournois commented 2 years ago

The current validate_query of the QueryBuilder class doesn't do proper validation. I would like to propose to use pydantic for query input validation. I believe, this would greatly improve the user experience when working with pydruid.