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

Python Wrapper Properties include Java static method #2306

Closed
hythloda opened this issue Apr 20, 2022 · 3 comments
Closed

Python Wrapper Properties include Java static method #2306

hythloda opened this issue Apr 20, 2022 · 3 comments
Assignees
Labels
feature request New feature or request

Comments

@hythloda
Copy link
Contributor

hythloda commented Apr 20, 2022

As a python user, I want no confusion about which method does what.

We should attach a property to every wrapper function to hold the name of the wrapped Java static method.

This will allows for no confusion for the user with the difference between lower_bin and lowerBin and having to know when to use which.

Something akin to an alias so theMethod in Java can be the_method when used from python.

This issue was highlighted with @jcferretti from the Debezium Python V2 rewrite. As there are two ways for the same task
['received_at_minute = lowerBin(received_at, minute_in_nanos)']

['received_at_minute = (DateTime)lower_bin(received_at, minute_in_nanos)']

Linked to #2303

@jmao-denver
Copy link
Contributor

A related but different issue is that when both Python and Java have symbols with the same name and both can be used in formula/filter evaluation.

@niloc132
Copy link
Member

See #3830 (comment)

@jmao-denver
Copy link
Contributor

made unnecessary by #4388

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
3 participants