Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
CAST('abcdfe' AS CHAR(3)) should trim the string to 3 chars but currently returns the whole string 'abcdfe'.
PostgreSQL and Oracle for example behave as such:
postgres=# select '123456afas'::char(4);
bpchar
--------
1234
(1 row)
postgres=# select '123456afas'::varchar(5);
varchar
---------
12345
(1 row)
Attachments
Issue Links
- causes
-
FLINK-31653 Using`if` statement for a string subtype of the row type may meet npe in code generated by codegen
- Closed
- is a parent of
-
FLINK-24753 Enforce CHAR/VARCHAR precision when outputing to a Sink
- Closed
- relates to
-
FLINK-24586 SQL functions should return STRING instead of VARCHAR(2000)
- Closed
- links to