Skip to content

Commit 479fb07

Browse files
committed
[FLINK-13078][table-common] Add a logical type parser
This adds a parser for all logical types defined in FLIP-37. This closes apache#9061.
1 parent 29fcd0c commit 479fb07

File tree

5 files changed

+1437
-3
lines changed

5 files changed

+1437
-3
lines changed

flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/LogicalType.java

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.apache.flink.annotation.PublicEvolving;
2222
import org.apache.flink.table.types.logical.utils.LogicalTypeCasts;
2323
import org.apache.flink.table.types.logical.utils.LogicalTypeGeneralization;
24+
import org.apache.flink.table.types.logical.utils.LogicalTypeParser;
2425
import org.apache.flink.util.Preconditions;
2526

2627
import java.io.Serializable;
@@ -98,6 +99,8 @@ public final LogicalType copy() {
9899
* Returns a string that fully serializes this instance. The serialized string can be used for
99100
* transmitting or persisting a type.
100101
*
102+
* <p>See {@link LogicalTypeParser} for the reverse operation.
103+
*
101104
* @return detailed string for transmission or persistence
102105
*/
103106
public abstract String asSerializableString();

0 commit comments

Comments
 (0)