You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1314 we provide only a limited support for conv bases 10, 16 based on the current libcudf functionality
This issue tracks a dedicated kernel that will implement
Spark/ Hive's conv for all bases / radices [2;36]. The to_base can be negative.
with input alphabet consisting of
maximum ten numerals [0-9] and max twenty-six [a-z] case insensitive Latin characters, optionally prefixed by - for negative numbers
Output consisting of
maximum ten numerals [0-9] and max twenty-six [A-Z] Latin characters, optionally prefixed by - for negative numbers if to_base is negative
It should check for overflow and based on the ANSI flag either throw an exceptions or use replace output value with the value corresponding to unsigned interpretation of -1 if to_base is positive ( e.g 'FFFFFFFFFFFFFFFF') and '-1' is negative.
leading spaces '0x20' prefix is ignored. Then consume potentially '-' and the longest consecutive string of the valid digits w.r.t. to from_base. If the first non-space char is neither numerical nor - char stop and produce 0.
In #1314 we provide only a limited support for conv bases 10, 16 based on the current libcudf functionality
This issue tracks a dedicated kernel that will implement
Spark/ Hive's conv for all bases / radices [2;36]. The to_base can be negative.
with input alphabet consisting of
Output consisting of
It should check for overflow and based on the ANSI flag either throw an exceptions or use replace output value with the value corresponding to unsigned interpretation of -1 if to_base is positive ( e.g 'FFFFFFFFFFFFFFFF') and '-1' is negative.
leading spaces '0x20' prefix is ignored. Then consume potentially '-' and the longest consecutive string of the valid digits w.r.t. to from_base. If the first non-space char is neither numerical nor - char stop and produce
0
.Some examples:
Originally posted by @revans2 in #1314 (comment)
The text was updated successfully, but these errors were encountered: