slfan1989 opened a new pull request, #7008:
URL: https://github.com/apache/iceberg/pull/7008

   ### Background
   
   Flink1.16 `TableSchema` is Deprecated
   
   ```
   This class has been deprecated as part of FLIP-164.
   It has been replaced by two more dedicated classes `Schema` and 
`ResolvedSchema`.
   Use Schema for declaration in APIs. 
   ResolvedSchema is offered by the framework after resolution and validation.
   ```
   
   Some methods have been marked by `Flink` as methods to be deleted, We should 
implement our code according to the method recommended by `Flink`.
   
   TypeConversions#fromDataTypeToLegacyInfo
   
   ```
    /**
      * @deprecated Please don't use this method anymore. It will be removed 
soon and we should not
      *     make the removal more painful. Sources and sinks should use the 
method available in
      *     context to convert, within the planner you should use either {@code 
InternalTypeInfo} or
      *     {@code ExternalTypeInfo} depending on the use case.
      */
   @Deprecated
   public static TypeInformation<?>[] fromDataTypeToLegacyInfo(DataType[] 
dataType) {
       return Stream.of(dataType)
              .map(TypeConversions::fromDataTypeToLegacyInfo)
              .toArray(TypeInformation[]::new);
   }
   ```
   
   In This PR,  I will use `ResolvedSchema` to replace `TableSchema`.
   Modifications Include:
   1. Contains the method of tableSchema.
   2. Junit Test.
   3. Comment.
   4. Link references.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to