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

Stamatis Zampetakis commented on CALCITE-6796:
----------------------------------------------

[~caicancai] Please use the RESOLVED (instead of CLOSED) status when merging a 
PR to main. Thanks!

[~xiaochen.hello] I added you as a contributor to the project. You can now 
assign tickets to yourself.

> Convert Type from BINARY to VARBINARY in PrestoDialect 
> -------------------------------------------------------
>
>                 Key: CALCITE-6796
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6796
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.38.0
>            Reporter: xiaochen.zhou
>            Assignee: xiaochen.zhou
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>         Attachments: image-2025-01-24-15-55-54-087.png, 
> image-2025-01-24-15-56-15-241.png
>
>
> Since BINARY  type is not supported in Presto
> According to the documentation:
> [https://prestodb.io/docs/current/language/types.html#varbinary]
> ```
> Using {{CAST(xxxx AS BINARY)}} will result in an error:
> ```
> SELECT cast(task_id as binary)
> from applydata_bigdata.xflink_task_info
> where reader_info like '%mongodbreader%' or writer_info like 
> '%mongodbwriter%';
> {{```}}
> !image-2025-01-24-15-56-15-241.png|width=501,height=20!
>  
> It should be converted to the VARBINARY type instead.



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

Reply via email to