public InputQuery getInputQueryFromGCSPath()

in bigquery-antipattern-recognition/src/main/java/com/google/zetasql/toolkit/antipattern/util/GCSHelper.java [56:64]


  public InputQuery getInputQueryFromGCSPath(String gcsPath) {
    if (bucketName == null) {
      setBucketName(gcsPath);
    }
    String filename = gcsPath.replace(GCS_PATH_PREFIX+this.bucketName+GCS_DELIMITER, "");
    Blob blob = storage.get(bucketName, filename);
    String fileContent = new String(blob.getContent());
    return new InputQuery(fileContent, gcsPath);
  }