flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabian Hueske <fhue...@gmail.com>
Subject Re: Conditional branching in Table API
Date Tue, 31 Jan 2017 23:47:00 GMT
Hi Chen,

with Flink 1.2, conditions in select clauses are supported in the Table API
with the following syntax:

table.select('name, 'age, ('yearOfBirth < 1997) ? ("adult", "teenager") )

See also the documentation of built-in functions [1].

Best, Fabian

[1]
https://ci.apache.org/projects/flink/flink-docs-release-1.2/dev/table_api.html#built-in-functions

2017-02-01 0:29 GMT+01:00 Chen Qin <cq@uber.com>:

> Hi there,
>
> Is there any jira related to conditional branching support in table api?
>
> https://calcite.apache.org/docs/reference.html#conditional-functions-and-
> operators
>
> Thanks
> Chen
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message