[
https://issues.apache.org/jira/browse/FLINK-11342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16745021#comment-16745021
]
Stephan Ewen commented on FLINK-11342:
--------------------------------------
Do you suggest to do add examples in the docs, or as example programs in code?
> Add example for every built-In TableAPI&SQL Function
> -----------------------------------------------------
>
> Key: FLINK-11342
> URL: https://issues.apache.org/jira/browse/FLINK-11342
> Project: Flink
> Issue Type: Improvement
> Components: Table API & SQL
> Affects Versions: 1.7.0, 1.7.1
> Reporter: Hequn Cheng
> Priority: Major
>
> There are a lot of built-in tableApi&SQL functions:
> https://ci.apache.org/projects/flink/flink-docs-master/dev/table/functions.html
> Take {{TEMPORAL.extract(TIMEINTERVALUNIT)}} as an example, we have an example
> for it.
> {code:java}
> E.g., '2006-06-05'.toDate.extract(DAY) returns 5;
> '2006-06-05'.toDate.extract(QUARTER) returns 2.
> {code}
> The example is very helpful for users who are not familiar with the udf. And
> I think it would be great if we can add an example for every built-in
> function.
> This Jira issue is an umbrella issue. As there are kinds of built-in
> functions, I think it would be better to create more subtasks for it. For
> example, add a subtask for adding examples for built-in Comparison Functions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)