Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/348#discussion_r23773125
  
    --- Diff: 
flink-tests/src/test/scala/org/apache/flink/api/scala/types/TypeInformationGenTest.scala
 ---
    @@ -255,6 +255,53 @@ class TypeInformationGenTest {
         Assert.assertEquals(BasicTypeInfo.STRING_TYPE_INFO, tti.getTypeAt(0))
         Assert.assertEquals(BasicTypeInfo.STRING_TYPE_INFO, tti.getTypeAt(1))
       }
    +  
    +  @Test
    +  def testMultidimensionalArrays(): Unit = {
    +    // Tuple
    +    {
    +      val ti = createTypeInformation[Array[Array[(String, String)]]]
    +    
    +      Assert.assertTrue(ti.isInstanceOf[ObjectArrayTypeInfo[_, _]])
    +      val oati = ti.asInstanceOf[ObjectArrayTypeInfo[_, _]]
    +      
Assert.assertTrue(oati.getComponentInfo.isInstanceOf[ObjectArrayTypeInfo[_, _]])
    +      val oati2 = 
oati.getComponentInfo.asInstanceOf[ObjectArrayTypeInfo[_, _]]
    +      Assert.assertTrue(oati2.getComponentInfo.isTupleType)
    +      val tti = oati2.getComponentInfo.asInstanceOf[TupleTypeInfoBase[_]]
    +      Assert.assertEquals(BasicTypeInfo.STRING_TYPE_INFO, tti.getTypeAt(0))
    +      Assert.assertEquals(BasicTypeInfo.STRING_TYPE_INFO, tti.getTypeAt(1))
    +    }
    +    
    +    // primitives
    +    {
    +      val ti = createTypeInformation[Array[Array[Int]]]
    +    
    +      Assert.assertTrue(ti.isInstanceOf[ObjectArrayTypeInfo[_, _]])
    +      val oati = ti.asInstanceOf[ObjectArrayTypeInfo[_, _]]
    +      Assert.assertEquals(oati.getComponentInfo, 
PrimitiveArrayTypeInfo.INT_PRIMITIVE_ARRAY_TYPE_INFO)
    --- End diff --
    
    This line is too long. That's why mvn verify fails.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to