You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/02/27 00:23:00 UTC

[jira] [Work logged] (HIVE-26891) Fix TestArrowColumnarBatchSerDe test failures in branch-3

     [ https://issues.apache.org/jira/browse/HIVE-26891?focusedWorklogId=847704&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-847704 ]

ASF GitHub Bot logged work on HIVE-26891:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Feb/23 00:22
            Start Date: 27/Feb/23 00:22
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on PR #3897:
URL: https://github.com/apache/hive/pull/3897#issuecomment-1445516042

   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 847704)
    Time Spent: 20m  (was: 10m)

> Fix TestArrowColumnarBatchSerDe test failures in branch-3
> ---------------------------------------------------------
>
>                 Key: HIVE-26891
>                 URL: https://issues.apache.org/jira/browse/HIVE-26891
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Raghav Aggarwal
>            Assignee: Raghav Aggarwal
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Because of the _*Jackson*_ version upgrade to {_}2.12.0 in this [commit|https://github.com/apache/hive/commit/0ba9b619ddea3ef2bbc067927c5ea598caa002f7]{_}, there are unit test failure which are related to {_}*arrow*{_}.
> Stack Trace:
> {code:java}
> [ERROR] testMapDTI(org.apache.hadoop.hive.ql.io.arrow.TestArrowColumnarBatchSerDe)  Time elapsed: 0.034 s  <<< ERROR!
> java.lang.IllegalStateException: Cannot serialize array list to JSON string
>     at org.apache.arrow.vector.util.JsonStringArrayList.toString(JsonStringArrayList.java:47)
>     at java.lang.String.valueOf(String.java:2994)
>     at java.lang.StringBuilder.append(StringBuilder.java:137)
>     at org.apache.arrow.vector.VectorSchemaRoot.printRow(VectorSchemaRoot.java:128)
>     at org.apache.arrow.vector.VectorSchemaRoot.contentToTSVString(VectorSchemaRoot.java:145)
>     at org.apache.hadoop.hive.ql.io.arrow.TestArrowColumnarBatchSerDe.serializeAndDeserialize(TestArrowColumnarBatchSerDe.java:242)
>     at org.apache.hadoop.hive.ql.io.arrow.TestArrowColumnarBatchSerDe.initAndSerializeAndDeserialize(TestArrowColumnarBatchSerDe.java:204)
>     at org.apache.hadoop.hive.ql.io.arrow.TestArrowColumnarBatchSerDe.testMapDTI(TestArrowColumnarBatchSerDe.java:750)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>     at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>     at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>     at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
>     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>     at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
>     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
>     at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type `org.joda.time.Period` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-joda" to enable handling (through reference chain: org.apache.arrow.vector.util.JsonStringArrayList[0]->org.apache.arrow.vector.util.JsonStringHashMap["values"])
>     at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)
>     at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1276)
>     at com.fasterxml.jackson.databind.ser.impl.UnsupportedTypeSerializer.serialize(UnsupportedTypeSerializer.java:35)
>     at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:808)
>     at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeWithoutTypeInfo(MapSerializer.java:764)
>     at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:720)
>     at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:35)
>     at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:119)
>     at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:79)
>     at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:18)
>     at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
>     at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
>     at com.fasterxml.jackson.databind.ObjectMapper._writeValueAndClose(ObjectMapper.java:4485)
>     at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3740)
>     at org.apache.arrow.vector.util.JsonStringArrayList.toString(JsonStringArrayList.java:45)
>     ... 33 more[INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]   TestArrowColumnarBatchSerDe.testListDTI:600->initAndSerializeAndDeserialize:204->serializeAndDeserialize:242 » IllegalState
> [ERROR]   TestArrowColumnarBatchSerDe.testMapDTI:750->initAndSerializeAndDeserialize:204->serializeAndDeserialize:242 » IllegalState
> [ERROR]   TestArrowColumnarBatchSerDe.testStructDTI:664->initAndSerializeAndDeserialize:204->serializeAndDeserialize:242 » IllegalState
> [INFO]
> [ERROR] Tests run: 32, Failures: 0, Errors: 3, Skipped: 0 {code}
>  
> *How to reproduce this error:*
> {code:java}
> cd ql; mvn test -Dtest=TestArrowColumnarBatchSerDe {code}
> *Conclusion:*
> If we are upgrading Jackson version Arrow version also needs to be updated.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)