[
https://issues.apache.org/jira/browse/FLINK-3739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15241134#comment-15241134
]
ASF GitHub Bot commented on FLINK-3739:
---------------------------------------
Github user twalthr commented on the pull request:
https://github.com/apache/flink/pull/1880#issuecomment-209938182
I will update the docs. The default values are defined in `CodeGenUtils`.
```
def primitiveDefaultValue(tpe: TypeInformation[_]): String = tpe match {
case INT_TYPE_INFO => "-1"
case LONG_TYPE_INFO => "-1"
case SHORT_TYPE_INFO => "-1"
case BYTE_TYPE_INFO => "-1"
case FLOAT_TYPE_INFO => "-1.0f"
case DOUBLE_TYPE_INFO => "-1.0d"
case BOOLEAN_TYPE_INFO => "false"
case STRING_TYPE_INFO => "\"\""
case CHAR_TYPE_INFO => "'\\0'"
case _ => "null"
}
```
> Add a null literal to Table API
> -------------------------------
>
> Key: FLINK-3739
> URL: https://issues.apache.org/jira/browse/FLINK-3739
> Project: Flink
> Issue Type: Improvement
> Components: Table API
> Reporter: Timo Walther
> Assignee: Timo Walther
>
> The Table API needs support for the null literal e.g. for passing null values
> to functions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)