devanshu0987 commented on issue #12709:
URL: https://github.com/apache/datafusion/issues/12709#issuecomment-3830299845

   > One thing to keep in mind is how we handle binary || string concat (i.e. 
which common type we coerce to); we can't assume all binary is a valid string, 
but strings are always valid binary.
   
   ```
   devanshu=# SELECT 'abc'::text || '\x00'::bytea AS result,  
pg_typeof('abc'::text || '\x00'::bytea) AS concat_result;
    result  | concat_result 
   ---------+---------------
    abc\x00 | text
   (1 row)
   ```
   
   I validated the rules in Postgres 18. It coerces it to Text type regardless 
of whether the binary string is valid or not.
   bytea is coerced to text via its textual representation.
   
   Can we follow the same for Data Fusion?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to