-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 support for bitwise shift functions #722
Comments
Additionally, we need to think about the following scenarios:
Naming-wise, we may want to call them |
I think what we want are the following functions for each
That would make the functions consistent with the implementations of shift operators for various types in traditional programming languages and databases that support shift operators. For each of the types in the list above, the values are interpreted as 2s complement signed 8-bit, 16-bit, 32-bit and 64-bit numbers, respectively. The @prestosql/maintainers, @Lewuathe, thoughts? |
@martint But
|
The issue I have with |
In any case, let's go with this plan. We can finalize the name later. |
Presto currently supports bitwise functions and/or/xor/not. We should add support for bitwise left and right shift.
We need to consider how the function may or may not be sensitive to the length of the data type. From the original issue (prestodb/presto#4028):
The text was updated successfully, but these errors were encountered: