Skip to content
Permalink
Browse files
DRILL-6976: Added tests to verify that an empty function result in a …
…subquery no longer throws an exception. (#564)
  • Loading branch information
agozhiy authored and Agirish committed Mar 26, 2019
1 parent a60cc9c commit 360bad3f09dd35bf7f5855aaf77cdc42e623cb04
Showing 7 changed files with 39 additions and 0 deletions.
@@ -0,0 +1,5 @@
select substr(col, 2, 3)
from (select coalesce(n_comment, n_name) col
from cp.`tpch/nation.parquet`
where n_nationkey = -1
limit 5);
@@ -0,0 +1,5 @@
select coalesce(col, n_name)
from (select split(n_comment, ' ') [3] col, n_name
from cp.`tpch/nation.parquet`
where n_nationkey = -1
limit 5);
@@ -0,0 +1,7 @@
select substr(col, 2, 3)
from (select split(n_comment, ' ') [3] col
from cp.`tpch/nation.parquet`
where n_nationkey = -1
group by n_comment
order by n_comment
limit 5);
@@ -0,0 +1,22 @@
{
"testId": "split",
"type": "group",
"description": "Tests for split function",
"categories": [
"functional"
],
"matrices": [
{
"query-file": ".*.sql",
"schema": "cp",
"output-format": "tsv",
"expected-file": ".*.e_tsv",
"verification-type": [
"in-memory"
]
}
],
"datasources": [

]
}

0 comments on commit 360bad3

Please sign in to comment.