Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdk-impala: support also pydantic 1.0 #2368

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

antoniivanov
Copy link
Collaborator

@antoniivanov antoniivanov commented Jul 6, 2023

Ensure vdk-impala works with pydantic 1.0 as this is still used and libraries do not support the new version.

In hindsight, I should have pinned to 1.0 only. But I did not and it's a good idea to support the new version otherwise at some point it will cause conflicts and problems as other libraries adopt 2.0 of pydantic

Testing Done: installed locally pydantic 1.0 . The Gitlab CI is testing with 2

  • pip install pydantic==1.*
  • ../build-plugin.sh (from vdk-impala dir)
  • verified the test exited successfully.

I toyed with the idea of adding a test for pydanitc 1.0 but it would require some refactoring of hte plugin framework to allow that and it's not that urgent as the changes are fairly small.

Copy link
Contributor

@doks5 doks5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a note to the PR description how the change was tested?

@antoniivanov antoniivanov force-pushed the person/aivanov/vdk-impala-fix branch from a8d4378 to 9dd2513 Compare July 6, 2023 15:55
@antoniivanov
Copy link
Collaborator Author

Maybe add a note to the PR description how the change was tested?

Explained, thanks for the reminder.

@antoniivanov antoniivanov force-pushed the person/aivanov/vdk-impala-fix branch from 9dd2513 to 387bc3f Compare July 7, 2023 09:05
@antoniivanov antoniivanov force-pushed the person/aivanov/vdk-impala-fix branch from 387bc3f to 9715350 Compare July 7, 2023 10:11
Make sure vdk-impala works with pydantic 1.0 as this is still used and
some libraries do not support the new version.

In hindsight I probably should have pinned to 1.0 only . But I did not
and it's good idea to support the new version otherwise at some point in
the future it will cause conflicts and problems as other library
adopted.
@antoniivanov antoniivanov force-pushed the person/aivanov/vdk-impala-fix branch from 9715350 to 70b2f4e Compare July 7, 2023 10:42
@antoniivanov antoniivanov merged commit 87fa46a into main Jul 8, 2023
7 of 8 checks passed
@antoniivanov antoniivanov deleted the person/aivanov/vdk-impala-fix branch July 8, 2023 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants