vinishjail97 commented on code in PR #861:
URL: https://github.com/apache/incubator-xtable/pull/861#discussion_r3761622967


##########
xtable-core/src/main/java/org/apache/xtable/delta/DeltaConversionSource.java:
##########
@@ -103,10 +113,52 @@ public InternalSnapshot getCurrentSnapshot() {
   @Override
   public TableChange getTableChangeForCommit(Long versionNumber) {
     List<Action> actionsForVersion = 
getChangesState().getActionsForVersion(versionNumber);
-    Snapshot snapshotAtVersion = deltaLog.getSnapshotAt(versionNumber, 
Option.empty());
-    InternalTable tableAtVersion = tableExtractor.table(snapshotAtVersion, 
tableName);
-    FileFormat fileFormat =
-        
actionsConverter.convertToFileFormat(snapshotAtVersion.metadata().format().provider());
+    String tableBasePath = deltaLog.dataPath().toUri().toString();
+    InternalTable tableAtVersion;
+    FileFormat fileFormat;
+    if (reuseMetadataAcrossCommits) {

Review Comment:
   Move this block inside reuseMetadataAcrossCommits to it's separate function 
and call it here? 



-- 
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]

Reply via email to