[ https://issues.apache.org/jira/browse/SPARK-43121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chao Sun resolved SPARK-43121. ------------------------------ Fix Version/s: 3.5.0 Resolution: Fixed > Use `BytesWritable.copyBytes` instead of manual copy in `HiveInspectors` > ------------------------------------------------------------------------ > > Key: SPARK-43121 > URL: https://issues.apache.org/jira/browse/SPARK-43121 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.5.0 > Reporter: Yang Jie > Assignee: Yang Jie > Priority: Minor > Fix For: 3.5.0 > > > // BytesWritable.copyBytes() only available since Hadoop2 > // In order to keep backward-compatible, we have to copy the > // bytes with old apis > val bw = x.getPrimitiveWritableObject(data) > val result = new Array[Byte](bw.getLength()) > System.arraycopy(bw.getBytes(), 0, result, 0, bw.getLength()) > result -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org