Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
CHAR/VARCHAR lengths are enforced (trimmed/padded) by default now before entering the table sink.
Description
When a column is declared with CHAR/VARCHAR with a specific precision, i.e. CHAR(10) a sink that would require following this precision strictly (like a relational DB) would throw errors if the records received exceed this limit.
Add an operator similar to the one SinkNotNullEnforcer and possible merge this functionality into one operator (i.e. SinkConstraintValidator)
Attachments
Issue Links
- is a child of
-
FLINK-24413 Casting to a CHAR() and VARCHAR() doesn't trim the string to the specified precision
- Closed
- links to