You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "jackylau (Jira)" <ji...@apache.org> on 2021/03/26 09:29:00 UTC
[jira] [Created] (FLINK-21991) flink varchar which exposes to users
it not unified
jackylau created FLINK-21991:
--------------------------------
Summary: flink varchar which exposes to users it not unified
Key: FLINK-21991
URL: https://issues.apache.org/jira/browse/FLINK-21991
Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Affects Versions: 1.13.0
Reporter: jackylau
Fix For: 1.13.0
sql VARCHAR: If no length is specified, n is equal to 1. which is not right.
calcite will transform the varchar to string
{code:java}
SqlDataTypeSpec type = regularColumn.getType();
boolean nullable = type.getNullable() == null ? true : type.getNullable();
RelDataType relType = type.deriveType(sqlValidator, nullable);
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)