This is an automated email from the ASF dual-hosted git repository.

kharekartik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 442bfc3af1 Minor: Limit MultiStageQuickstart output (#10307)
442bfc3af1 is described below

commit 442bfc3af1bdae230fda6aa5112f028e7620c5b8
Author: Kartik Khare <kharekar...@gmail.com>
AuthorDate: Mon Feb 20 15:58:21 2023 +0530

    Minor: Limit MultiStageQuickstart output (#10307)
    
    Co-authored-by: Kartik Khare <kharekartik@Kartiks-MacBook-Pro.local>
---
 .../java/org/apache/pinot/tools/MultistageEngineQuickStart.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/pinot-tools/src/main/java/org/apache/pinot/tools/MultistageEngineQuickStart.java
 
b/pinot-tools/src/main/java/org/apache/pinot/tools/MultistageEngineQuickStart.java
index fc563d9970..690e99990b 100644
--- 
a/pinot-tools/src/main/java/org/apache/pinot/tools/MultistageEngineQuickStart.java
+++ 
b/pinot-tools/src/main/java/org/apache/pinot/tools/MultistageEngineQuickStart.java
@@ -57,7 +57,7 @@ public class MultistageEngineQuickStart extends Quickstart {
     printStatus(Quickstart.Color.YELLOW, "***** Multi-stage engine quickstart 
setup complete *****");
     Map<String, String> queryOptions = Collections.singletonMap("queryOptions",
         CommonConstants.Broker.Request.QueryOptionKey.USE_MULTISTAGE_ENGINE + 
"=true");
-    String q1 = "SELECT count(*) FROM baseballStats_OFFLINE";
+    String q1 = "SELECT count(*) FROM baseballStats_OFFLINE LIMIT 10";
     printStatus(Quickstart.Color.YELLOW, "Total number of documents in the 
table");
     printStatus(Quickstart.Color.CYAN, "Query : " + q1);
     printStatus(Quickstart.Color.YELLOW, 
prettyPrintResponse(runner.runQuery(q1, queryOptions)));
@@ -65,7 +65,7 @@ public class MultistageEngineQuickStart extends Quickstart {
 
     String q2 = "SELECT a.playerID, a.runs, a.yearID, b.runs, b.yearID"
         + " FROM baseballStats_OFFLINE AS a JOIN baseballStats_OFFLINE AS b ON 
a.playerID = b.playerID"
-        + " WHERE a.runs > 160 AND b.runs < 2";
+        + " WHERE a.runs > 160 AND b.runs < 2 LIMIT 10";
     printStatus(Quickstart.Color.YELLOW, "Correlate the same player(s) with 
more than 160-run some year(s) and"
         + " with less than 2-run some other year(s)");
     printStatus(Quickstart.Color.CYAN, "Query : " + q2);
@@ -75,7 +75,7 @@ public class MultistageEngineQuickStart extends Quickstart {
     String q3 = "SELECT a.playerName, a.teamID, b.teamName \n"
         + "FROM baseballStats_OFFLINE AS a\n"
         + "JOIN dimBaseballTeams_OFFLINE AS b\n"
-        + "ON a.teamID = b.teamID";
+        + "ON a.teamID = b.teamID LIMIT 10";
     printStatus(Quickstart.Color.YELLOW, "Baseball Stats with joined team 
names");
     printStatus(Quickstart.Color.CYAN, "Query : " + q3);
     printStatus(Quickstart.Color.YELLOW, 
prettyPrintResponse(runner.runQuery(q3, queryOptions)));


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to