Skip to content

Commit

Permalink
Plan diff for prestodb/presto#24047
Browse files Browse the repository at this point in the history
  • Loading branch information
aaneja committed Jan 24, 2025
1 parent 9293502 commit 605bfd6
Showing 1 changed file with 92 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<!-- Make sure to load the highlight.js CSS file before the Diff2Html CSS file -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/github.min.css" />
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css"
/>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui.min.js"></script>
</head>
<script>
const diffString = `diff -U 1000000 /tmp/diff5410022670780246113/false/query_18.txt /tmp/diff5410022670780246113/true/query_18.txt
--- /tmp/diff5410022670780246113/false/query_18.txt 2025-01-24 09:59:43.298579329 +0530
+++ /tmp/diff5410022670780246113/true/query_18.txt 2025-01-24 09:59:43.402577802 +0530
@@ -1,13 +1,13 @@
-Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- Project <- InnerJoin[REPLICATED] :
+Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- LocalExchange <- RemoteSource <- Project <- InnerJoin[REPLICATED] :
├── InnerJoin[REPLICATED] :
│ ├── InnerJoin[REPLICATED] :
│ │ ├── InnerJoin[REPLICATED] :
│ │ │ ├── Scan(catalog_sales)
│ │ │ └── LocalExchange <- RemoteSource <- Scan(customer_demographics)
│ │ └── LocalExchange <- RemoteSource <- InnerJoin[REPLICATED] :
│ │ ├── InnerJoin[REPLICATED] :
│ │ │ ├── Scan(customer)
│ │ │ └── LocalExchange <- RemoteSource <- Scan(customer_address)
│ │ └── LocalExchange <- RemoteSource <- Scan(customer_demographics)
│ └── LocalExchange <- RemoteSource <- Scan(date_dim)
└── LocalExchange <- RemoteSource <- Scan(item)
diff -U 1000000 /tmp/diff5410022670780246113/false/query_22.txt /tmp/diff5410022670780246113/true/query_22.txt
--- /tmp/diff5410022670780246113/false/query_22.txt 2025-01-24 09:59:43.366578330 +0530
+++ /tmp/diff5410022670780246113/true/query_22.txt 2025-01-24 09:59:43.451577082 +0530
@@ -1,5 +1,5 @@
-Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- Project <- InnerJoin[REPLICATED] :
+Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- LocalExchange <- RemoteSource <- Project <- InnerJoin[REPLICATED] :
├── InnerJoin[REPLICATED] :
│ ├── Scan(inventory)
│ └── LocalExchange <- RemoteSource <- Scan(date_dim)
└── LocalExchange <- RemoteSource <- Scan(item)
diff -U 1000000 /tmp/diff5410022670780246113/false/query_27.txt /tmp/diff5410022670780246113/true/query_27.txt
--- /tmp/diff5410022670780246113/false/query_27.txt 2025-01-24 09:59:43.363578375 +0530
+++ /tmp/diff5410022670780246113/true/query_27.txt 2025-01-24 09:59:43.447577141 +0530
@@ -1,9 +1,9 @@
-Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- Project <- InnerJoin[REPLICATED] :
+Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- LocalExchange <- RemoteSource <- Project <- InnerJoin[REPLICATED] :
├── InnerJoin[REPLICATED] :
│ ├── InnerJoin[REPLICATED] :
│ │ ├── InnerJoin[REPLICATED] :
│ │ │ ├── Scan(store_sales)
│ │ │ └── LocalExchange <- RemoteSource <- Scan(customer_demographics)
│ │ └── LocalExchange <- RemoteSource <- Scan(store)
│ └── LocalExchange <- RemoteSource <- Scan(date_dim)
└── LocalExchange <- RemoteSource <- Scan(item)
diff -U 1000000 /tmp/diff5410022670780246113/false/query_67.txt /tmp/diff5410022670780246113/true/query_67.txt
--- /tmp/diff5410022670780246113/false/query_67.txt 2025-01-24 09:59:43.384578066 +0530
+++ /tmp/diff5410022670780246113/true/query_67.txt 2025-01-24 09:59:43.470576803 +0530
@@ -1,7 +1,7 @@
-Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Filter <- Window <- LocalExchange <- RemoteSource <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- Project <- InnerJoin[REPLICATED] :
+Output <- TopN <- LocalExchange <- RemoteSource <- TopNPartial <- Filter <- Window <- LocalExchange <- RemoteSource <- Project <- Agg() <- LocalExchange <- RemoteSource <- Agg() <- GroupId <- LocalExchange <- RemoteSource <- Project <- InnerJoin[REPLICATED] :
├── InnerJoin[REPLICATED] :
│ ├── InnerJoin[REPLICATED] :
│ │ ├── Scan(store_sales)
│ │ └── LocalExchange <- RemoteSource <- Scan(date_dim)
│ └── LocalExchange <- RemoteSource <- Scan(store)
└── LocalExchange <- RemoteSource <- Scan(item)
`;

document.addEventListener('DOMContentLoaded', function () {
var targetElement = document.getElementById('myDiffElement');
var configuration = {
drawFileList: true,
fileListToggle: false,
fileListStartVisible: false,
fileContentToggle: false,
matching: 'lines',
outputFormat: 'side-by-side',
synchronisedScroll: true,
highlight: true,
renderNothingWhenEmpty: false,
};
var diff2htmlUi = new Diff2HtmlUI(targetElement, diffString, configuration);
diff2htmlUi.draw();
diff2htmlUi.highlightCode();
});
</script>
<body>
<div id="myDiffElement"></div>
</body>
</html>

0 comments on commit 605bfd6

Please sign in to comment.