File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
sql/core/src/main/scala/org/apache/spark/sql/parquet Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,10 @@ private[parquet] class AppendingParquetOutputFormat(offset: Int)
339339 new Path (committer.getWorkPath, filename)
340340 }
341341
342+ // The TaskAttemptContext is a class in hadoop-1 but is an interface in hadoop-2.
343+ // The signatures of the method TaskAttemptContext.getTaskAttemptID for the both versions
344+ // are the same, so the method calls are source-compatible but NOT binary-compatible because
345+ // the opcode of method call for class is INVOKEVIRTUAL and for interface is INVOKEINTERFACE.
342346 private def getTaskAttemptID (context : TaskAttemptContext ): TaskAttemptID = {
343347 context.getClass.getMethod(" getTaskAttemptID" ).invoke(context).asInstanceOf [TaskAttemptID ]
344348 }
You can’t perform that action at this time.
0 commit comments