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

[query] String multiplying #10768

Merged
merged 2 commits into from
Aug 10, 2021
Merged

[query] String multiplying #10768

merged 2 commits into from
Aug 10, 2021

Conversation

johnc1231
Copy link
Contributor

In python, "hail" * 3 evaluates to "hailhailhail". I've added support for this syntax to hail expressions by overriding StringExpression.__mul__, StringExpression.__rmul__, Int32Expression.__mul__, and Int32Expression.__rmul__. It was necessary to do all 4 in order to make sure all possible combinations of python values and hail expressions work.

@danking danking merged commit eb369b8 into hail-is:main Aug 10, 2021
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.

None yet

3 participants