wangyum commented on a change in pull request #25740:
[SPARK-28412][SQL][TEST][FOLLOW-UP]Enable overlay binary function tests
URL: https://github.com/apache/spark/pull/25740#discussion_r322613773
##########
File path: sql/core/src/test/resources/sql-tests/inputs/pgSQL/strings.sql
##########
@@ -653,8 +653,9 @@ SELECT trim(binary('\\000') from binary('\\000Tom\\000'));
-- SELECT btrim(E'\\000trim\\000'::bytea, ''::bytea);
-- [SPARK-28121] decode can not accept 'escape' as charset
-- [SPARK-28412][SQL] ANSI SQL: OVERLAY function support byte array
--- SELECT encode(overlay(E'Th\\000omas'::bytea placing E'Th\\001omas'::bytea
from 2),'escape');
--- SELECT encode(overlay(E'Th\\000omas'::bytea placing E'\\002\\003'::bytea
from 8),'escape');
--- SELECT encode(overlay(E'Th\\000omas'::bytea placing E'\\002\\003'::bytea
from 5 for 3),'escape');
Review comment:
I think the expected SQL is:
```sql
SELECT encode(overlay(binary(E'Th\\000omas') placing binary(E'Th\\001omas')
from 2),'escape');
```
But we don't support **String Constants with C-style Escapes**(SPARK-29034)
and **`decode` can not accept 'escape' as charset**(SPARK-28121) now.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]