dawidwys commented on PR #22730:
URL: https://github.com/apache/flink/pull/22730#issuecomment-1613587958

   @hanyuzheng7 I think the issue is with bridging classes...
   
   tl;dr; this should do the trick:
   
   ```
           return Stream.of(
                   TestSpec.forStrategy(
                                   "infer an array's element type",
                                   SpecificTypeStrategies.ARRAY_ELEMENT)
                           
.inputTypes(DataTypes.ARRAY(DataTypes.INT().notNull()).notNull())
                           
.expectDataType(DataTypes.INT().notNull().bridgedTo(int.class)),
                   TestSpec.forStrategy(
                                   "infer an array's element type",
                                   SpecificTypeStrategies.ARRAY_ELEMENT)
                           .inputTypes(DataTypes.ARRAY(DataTypes.INT()))
                           .expectDataType(DataTypes.INT()),
                   TestSpec.forStrategy(
                                   "infer an array's element type",
                                   SpecificTypeStrategies.ARRAY_ELEMENT)
                           
.inputTypes(DataTypes.ARRAY(DataTypes.INT().notNull()))
                           
.expectDataType(DataTypes.INT().bridgedTo(int.class)));
   ```


-- 
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

Reply via email to