[ 
https://issues.apache.org/jira/browse/PHOENIX-7424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17890459#comment-17890459
 ] 

Istvan Toth commented on PHOENIX-7424:
--------------------------------------

Despite any reasonable expectations, ENCODE/DECODE are NOT symmetric.

DECODE does what you expect, but ENCODE is super weird, and only accepts 
numbers and converts them to Base62, not binary values.



We probably need to define another set of ENCODE/DECODE -like functions with 
sane semantics, because otherwise we'd have to break current oddball ENCODE 
semantics.


> Support toStringBinary/toBytesBinary conversion
> -----------------------------------------------
>
>                 Key: PHOENIX-7424
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7424
>             Project: Phoenix
>          Issue Type: New Feature
>          Components: core
>            Reporter: Istvan Toth
>            Priority: Major
>              Labels: beginner
>
> Being able to use the HBase toStringBinary/toBytesBinary escaping in Phoenix 
> would be helpful, especially for views on HBase tables.
> It would probably be best to add this as a new encoding to the existing 
> ENCODE/DECODE functions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to