ala commented on code in PR #37228:
URL: https://github.com/apache/spark/pull/37228#discussion_r941392004
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormat.scala:
##########
@@ -220,10 +235,24 @@ object FileFormat {
// the modificationTime from the file is in millisecond,
// while internally, the TimestampType `file_modification_time` is
stored in microsecond
row.update(i, fileModificationTime * 1000L)
+ case ROW_INDEX =>
+ // Reserve the spot in the row for a LongType value. The metadata
fields that have
+ // identical values for each row of the file are set by this
function, while fields that
+ // have different values (such as row index) are set separately.
+ row.update(i, -1L)
Review Comment:
Uh, I forgot to remove it. We should never hit this case.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]