Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public RelJsonWriter(JsonBuilder jsonBuilder,
this.verbosity = verbosity;
}

final Set<String> highVerbosity = Set.of("exprs", "aggs", "condition");
final Set<String> highVerbosity = Set.of("exprs", "aggs", "condition", "tuples");

protected void explain_(RelNode rel, List<Pair<String, Object>> values) {
Map<String, Object> map = this.jsonBuilder.map();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2134,4 +2134,17 @@ public void testSilenceWarning() {
CREATE VIEW V AS SELECT x FROM T;""");
Assert.assertEquals(0, cc.compiler.messages.messages.size());
}

@Test
public void issue5896() throws IOException, SQLException {
String sql = "CREATE VIEW v AS select cot(0)";
File file = createInputScript(sql);
File json = this.createTempJsonFile();
CompilerMessages msg = CompilerMain.execute(
"--dataflow", json.getPath(), "--noRust", file.getPath());
Assert.assertEquals(0, msg.exitCode);
ObjectMapper mapper = Utilities.deterministicObjectMapper();
JsonNode parsed = mapper.readTree(json);
Assert.assertNotNull(parsed);
}
}