Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
krajendran4 committed Jul 2, 2024
1 parent e4ff70c commit 7525f36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class AnalyzeTableSparkAction extends BaseSparkAction<AnalyzeTableSparkAc
Snapshot snapshot = table.currentSnapshot();
if (snapshot == null) {
LOG.error("Unable to analyze the table since the table has no snapshots");
throw new RuntimeException("Snapshot id is null");
throw new RuntimeException("Unable to analyze the table since the table has no snapshots");
}
this.snapshotId = snapshot.snapshotId();
this.columns =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ static ThetaSketchJavaSerializable updateSketch(

static ThetaSketchJavaSerializable combineSketch(
ThetaSketchJavaSerializable sketch1, ThetaSketchJavaSerializable sketch2) {
ThetaSketchJavaSerializable emptySketchWrapped =
new ThetaSketchJavaSerializable(UpdateSketch.builder().build().compact());
if (sketch1.getSketch() == null && sketch2.getSketch() == null) {
return emptySketchWrapped;
return new ThetaSketchJavaSerializable(UpdateSketch.builder().build().compact());
}
if (sketch1.getSketch() == null) {
return sketch2;
Expand Down

0 comments on commit 7525f36

Please sign in to comment.