Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.10.0
-
None
Description
The method 'from' of org.apache.flink.table.descriptors.Schema do not work for me.
Maybe I miss something.
Code:
.withFormat(new Json()
.failOnMissingField(false))
.withSchema(new Schema()
.field("user_server", DataTypes.STRING()).from("user"))
Result
The field 'user_server' has the value 'null'.
Error:
No Error.
Workaround:
This code works!
.withFormat(new Json()
.failOnMissingField(false))
.withSchema(new Schema()
.field("user", DataTypes.STRING())