You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/01/29 18:54:44 UTC

[GitHub] [pinot] amrishlal commented on a change in pull request #8093: Allow quickstart to get table files from filesystem.

amrishlal commented on a change in pull request #8093:
URL: https://github.com/apache/pinot/pull/8093#discussion_r795083330



##########
File path: pinot-tools/src/main/java/org/apache/pinot/tools/Quickstart.java
##########
@@ -54,8 +57,28 @@ public String getCode() {
     }
   }
 
+  /**
+   * Assuming that database name is DBNAME, bootstrap path must have the file structure specified below to properly
+   * load the table:
+   *  DBNAME
+   *  ├── ingestionJobSpec.yaml
+   *  ├── rawdata
+   *  │   └── DBNAME_data.csv
+   *  ├── DBNAME_offline_table_config.json
+   *  └── DBNAME_schema.json
+   *
+   * @return bootstrap path if specified by command line argument -bootstrapTableDir; otherwise, null.
+   */
   public String getBootstrapDataDir() {
-    return "examples/batch/baseballStats";
+    return _bootstrapDataDir != null ? _bootstrapDataDir : DEFAULT_BOOTSTRAP_DIRECTORY;
+  }
+
+  public String getTableName() {
+    return Paths.get(getBootstrapDataDir()).getFileName().toString();
+  }
+
+  public boolean isUsingDefaultResourceTable() {

Review comment:
       moved.




-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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