Skip to content

Commit

Permalink
[FLINK-19676][docs] java package name error in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsianglei authored and aljoscha committed Oct 26, 2020
1 parent 0184672 commit aee0e70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/dev/table/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -1709,8 +1709,8 @@ The following table lists classes that can be implicitly mapped to a data type w
If you intend to implement classes in Scala, *it is recommended to use boxed types* (e.g. `java.lang.Integer`)
instead of Scala's primitives. Scala's primitives (e.g. `Int` or `Double`) are compiled to JVM primitives (e.g.
`int`/`double`) and result in `NOT NULL` semantics as shown in the table below. Furthermore, Scala primitives that
are used in generics (e.g. `java.lang.Map[Int, Double]`) are erased during compilation and lead to class
information similar to `java.lang.Map[java.lang.Object, java.lang.Object]`.
are used in generics (e.g. `java.util.Map[Int, Double]`) are erased during compilation and lead to class
information similar to `java.util.Map[java.lang.Object, java.lang.Object]`.

| Class | Data Type |
|:----------------------------|:------------------------------------|
Expand Down Expand Up @@ -1741,7 +1741,7 @@ information similar to `java.lang.Map[java.lang.Object, java.lang.Object]`.
| `java.time.Period` | `INTERVAL YEAR(4) TO MONTH` |
| `byte[]` | `BYTES` |
| `T[]` | `ARRAY<T>` |
| `java.lang.Map<K, V>` | `MAP<K, V>` |
| `java.util.Map<K, V>` | `MAP<K, V>` |
| structured type `T` | anonymous structured type `T` |

Other JVM bridging classes mentioned in this document require a `@DataTypeHint` annotation.
Expand Down
6 changes: 3 additions & 3 deletions docs/dev/table/types.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -1594,8 +1594,8 @@ Flink API 经常尝试使用反射自动从类信息中提取数据类型,以
If you intend to implement classes in Scala, *it is recommended to use boxed types* (e.g. `java.lang.Integer`)
instead of Scala's primitives. Scala's primitives (e.g. `Int` or `Double`) are compiled to JVM primitives (e.g.
`int`/`double`) and result in `NOT NULL` semantics as shown in the table below. Furthermore, Scala primitives that
are used in generics (e.g. `java.lang.Map[Int, Double]`) are erased during compilation and lead to class
information similar to `java.lang.Map[java.lang.Object, java.lang.Object]`.
are used in generics (e.g. `java.util.Map[Int, Double]`) are erased during compilation and lead to class
information similar to `java.util.Map[java.lang.Object, java.lang.Object]`.

|| 数据类型 |
|:----------------------------|:------------------------------------|
Expand Down Expand Up @@ -1626,7 +1626,7 @@ information similar to `java.lang.Map[java.lang.Object, java.lang.Object]`.
| `java.time.Period` | `INTERVAL YEAR(4) TO MONTH` |
| `byte[]` | `BYTES` |
| `T[]` | `ARRAY<T>` |
| `java.lang.Map<K, V>` | `MAP<K, V>` |
| `java.util.Map<K, V>` | `MAP<K, V>` |
| structured type `T` | anonymous structured type `T` |


Expand Down

0 comments on commit aee0e70

Please sign in to comment.