twalthr commented on code in PR #26638: URL: https://github.com/apache/flink/pull/26638#discussion_r2132107949
########## docs/content.zh/docs/dev/table/types.md: ########## @@ -1301,35 +1349,27 @@ class User { // enrich the extraction with forcing using RAW types public @DataTypeHint("RAW") Class<?> modelClass; } - -DataTypes.of(User.class); ``` -**Bridging to JVM Types** - -| Java Type | Input | Output | Remarks | -|:-------------------------------------|:-----:|:------:|:----------------------------------------| -|*class* | X | X | Originating class or subclasses (for input) or <br>superclasses (for output). *Default* | -|`org.apache.flink.types.Row` | X | X | Represent the structured type as a row. | -|`org.apache.flink.table.data.RowData` | X | X | Internal data structure. | - -{{< /tab >}} -{{< tab "Scala" >}} -```scala -case class User( - - // extract fields automatically - age: Int, - name: String, +Or via explicit declaration: +```java +DataTypes.STRUCTURED(Class, DataTypes.FIELD(n0, t0), DataTypes.FIELD(n1, t1), ...); +DataTypes.STRUCTURED(String, DataTypes.FIELD(n0, t0), DataTypes.FIELD(n1, t1), ...); Review Comment: I just wanted to highlight that there are two methods taking either Class or String. I reworked this part. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org