Sign in
apache
/
drill-test-framework
/
0c85b4fdd97d4bceb9f295eb434983b210bff100
/
.
/
framework
/
resources
/
Functional
/
functions
/
split
/
DRILL_6976_subquery_substr_split.sql
blob: f78ceafef034a0553217d9bdaa3890f6d5b885f0 [
file
] [
log
] [
blame
]
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
);