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

add contains and toString #13

Merged
merged 6 commits into from
Sep 19, 2023

Conversation

calvernaz
Copy link

@calvernaz calvernaz commented Sep 17, 2023

Adds toString and contains methods. These two have been overridden in community and will be removed once this is merged

@calvernaz calvernaz requested a review from whummer September 17, 2023 13:26
Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for adding this @calvernaz , and for adding the snapshot test. 🎉

Looks like there's only a small discrepancy - I guess we could create a custom serializer to convert dict objects to string.. (VTL uses the Java notation of Map.toString)

>> match key: render-result-1
	(~) / '{k1=v1, k2=v2}' → "{'k1': 'v1', 'k2': 'v2'}" ... (expected → actual)

@calvernaz
Copy link
Author

/

Nice! Thanks for adding this @calvernaz , and for adding the snapshot test. 🎉

Looks like there's only a small discrepancy - I guess we could create a custom serializer to convert dict objects to string.. (VTL uses the Java notation of Map.toString)

>> match key: render-result-1
	(~) / '{k1=v1, k2=v2}' → "{'k1': 'v1', 'k2': 'v2'}" ... (expected → actual)

good catch, have a fix for it, hopefully is good enough

Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

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

LGTM 👍 (only a tiny nit suggestion..)

Can you please bump the version and update the change log in the README, then we can release a new version right away.. 👍

airspeed/operators.py Outdated Show resolved Hide resolved
@calvernaz calvernaz force-pushed the contains-and-to_string-additional-methods branch from d4020a7 to fcb2b2e Compare September 18, 2023 21:54
@calvernaz calvernaz merged commit 0981c66 into master Sep 19, 2023
1 check passed
@calvernaz calvernaz deleted the contains-and-to_string-additional-methods branch September 19, 2023 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants