fix: pinot select query logic (#9954)

* Update how pinot handles selection logic

* Change DATETIMECONVERT argument to use single quote for literals
This commit is contained in:
Xiang Fu
2020-06-02 23:18:35 -07:00
committed by GitHub
parent 209392e9ef
commit 1d9dbcd9dc
2 changed files with 9 additions and 15 deletions

View File

@@ -29,5 +29,5 @@ class PinotTestCase(DbEngineSpecTestCase):
result = str(expr.compile())
self.assertEqual(
result,
'DATETIMECONVERT(tstamp, "1:SECONDS:EPOCH", "1:SECONDS:EPOCH", "1:MONTHS")',
"DATETIMECONVERT(tstamp, '1:SECONDS:EPOCH', '1:SECONDS:EPOCH', '1:MONTHS')",
) # noqa