[ 
https://issues.apache.org/jira/browse/FLINK-17548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17327845#comment-17327845
 ] 

Flink Jira Bot commented on FLINK-17548:
----------------------------------------

This major issue is unassigned and itself and all of its Sub-Tasks have not 
been updated for 30 days. So, it has been labeled "stale-major". If this ticket 
is indeed "major", please either assign yourself or give an update. Afterwards, 
please remove the label. In 7 days the issue will be deprioritized.

> Table API Schema "from" not working
> -----------------------------------
>
>                 Key: FLINK-17548
>                 URL: https://issues.apache.org/jira/browse/FLINK-17548
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>    Affects Versions: 1.10.0
>            Reporter: Rafael Wicht
>            Priority: Major
>              Labels: stale-major
>
> The method 'from' of org.apache.flink.table.descriptors.Schema do not work 
> for me.
> Maybe I miss something.
> h3. Code:
> {{.withFormat({color:#cc7832}new {color}Json()}}
>  {{     .failOnMissingField({color:#cc7832}false{color}))}}
>  {{.withSchema({color:#cc7832}new {color}Schema()}}
>  {{     .field({color:#6a8759}"user_server"{color}{color:#cc7832}, 
> {color}DataTypes.STRING()).from({color:#6a8759}"user"{color}))}}
> h3. Result
> The field 'user_server' has the value 'null'.
> h3. Error:
> No Error.
> h3. Workaround:
> This code works!
> {{.withFormat({color:#cc7832}new {color}Json()}}
>  {{     .failOnMissingField({color:#cc7832}false{color}))}}
>  {{.withSchema({color:#cc7832}new {color}Schema()}}
>  {{     .field({color:#6a8759}"user"{color}{color:#cc7832}, 
> {color}DataTypes.STRING())}}
> h3.  
> h3. From the



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to