-
Notifications
You must be signed in to change notification settings - Fork 116
Support incremental refresh for Delta Lake #301
Conversation
| * @param relation [[Relation]] object to read partial data files. | ||
| * @return File format to read partial data files. | ||
| */ | ||
| def partialReadFileFormat(relation: Relation): Option[String] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be def internalFileFormatName, underlyingFileFormatName, physicalFileFormatName or something to denote the actual file format used for storing the files?
|
@apoorvedave1 @pirz Can you review this PR? Thanks. |
apoorvedave1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @sezruby
pirz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks.
| logicalRelation.relation match { | ||
| case HadoopFsRelation(_: PartitioningAwareFileIndex, _, _, _, format, _) | ||
| if isSupportedFileFormat(format) => | ||
| if isSupportedFileFormat(format) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Is indentation here correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it's fixed by scalafmt; it's because this if is for the case.
imback82
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @sezruby!
What is the context for this pull request?
Fixes #295
What changes were proposed in this pull request?
This PR includes following bug fixes for Delta Lake source.
partialReadFileFormatto read appended files separatelyDoes this PR introduce any user-facing change?
Yes, this PR fixes several issues described above.
How was this patch tested?
Unit test