Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.10.0
Description
I created a table in sql client with blink planner:
create table t ( a int, b varchar, c decimal(10, 5)) with ( 'connector.type' = 'filesystem', 'format.type' = 'csv', 'format.derive-schema' = 'true', 'connector.path' = 'xxxxxxx' );
The table description looks good:
Flink SQL> describe t; root |-- a: INT |-- b: STRING |-- c: DECIMAL(10, 5)
But the select query failed:
Flink SQL> select * from t; [ERROR] Could not execute SQL statement. Reason: org.apache.flink.table.planner.codegen.CodeGenException: Incompatible types of expression and result type. Expression[GeneratedExpression(field$3,isNull$3,,DECIMAL(38, 18),None)] type is [DECIMAL(38, 18)], result type is [DECIMAL(10, 5)]
Attachments
Issue Links
- duplicates
-
FLINK-15141 Using decimal type in a sink table, the result returns a not match ValidationException
- Closed
- is related to
-
FLINK-15217 'java.time.LocalDate' should support for the CSV input format.
- Closed
- relates to
-
FLINK-15141 Using decimal type in a sink table, the result returns a not match ValidationException
- Closed
- supercedes
-
FLINK-15151 Use new type system in TableSourceUtil.computeIndexMapping of blink planner
- Closed
- links to