use of com.linkedin.coral.trino.rel2trino.RelToTrinoConverter in project coral by linkedin.
the class TrinoToRelConverterTest method testSupport.
@Test(dataProvider = "support")
public void testSupport(String trinoSql, String expectedRelString, String expectedSql) {
RelNode relNode = trinoToRelConverter.convertSql(trinoSql);
assertEquals(relToStr(relNode), expectedRelString);
RelToTrinoConverter relToTrinoConverter = new RelToTrinoConverter();
// Convert rel node back to Sql
String expandedSql = relToTrinoConverter.convert(relNode);
assertEquals(expandedSql, expectedSql);
}
Aggregations