Skip to content

Commit

Permalink
Add short integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
xzdandy committed Sep 11, 2023
1 parent 4389bcc commit 30400f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/integration_tests/short/test_select_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,18 @@ def test_lateral_join_with_unnest_and_sample(self):
self.assertEqual(len(unnest_batch), 10)
self.assertEqual(unnest_batch, expected)

def test_select_without_from(self):
# Check test/integration_tests/long/test_model_forecasting.py for `SELECT FUNC(1)` test cases.
query = """SELECT 1;"""
batch = execute_query_fetch_all(self.evadb, query)
expected = Batch(pd.DataFrame([{0: 1}]))
self.assertEqual(batch, expected)

query = """SELECT 1>2;"""
batch = execute_query_fetch_all(self.evadb, query)
expected = Batch(pd.DataFrame([{0: False}]))
self.assertEqual(batch, expected)

def test_should_raise_error_with_missing_alias_in_lateral_join(self):
function_name = "DummyMultiObjectDetector"
query = """SELECT id, labels
Expand Down

0 comments on commit 30400f2

Please sign in to comment.