in bigquery-antipattern-recognition/src/main/java/com/google/zetasql/toolkit/antipattern/cmd/InputFolderQueryIterable.java [44:56]
public InputQuery next() {
String filePathStr = filePathIterator.next();
Path fileName = Path.of(filePathStr);
try {
if (GCSHelper.isGCSPath(filePathStr)) {
return gcsHelper.getInputQueryFromGCSPath(filePathStr);
} else {
return new InputQuery(Files.readString(fileName), filePathStr);
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}