mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-24 06:32:32 +00:00
*: make clippy happy
Signed-off-by: Chojan Shang <psiace@outlook.com>
This commit is contained in:
parent
0c52491191
commit
a12dd0e83a
1 changed files with 3 additions and 4 deletions
|
@ -2202,8 +2202,8 @@ impl<'a> Parser<'a> {
|
||||||
Ok(Query {
|
Ok(Query {
|
||||||
with,
|
with,
|
||||||
body,
|
body,
|
||||||
limit,
|
|
||||||
order_by,
|
order_by,
|
||||||
|
limit,
|
||||||
offset,
|
offset,
|
||||||
fetch,
|
fetch,
|
||||||
})
|
})
|
||||||
|
@ -2358,8 +2358,7 @@ impl<'a> Parser<'a> {
|
||||||
]) // This couldn't possibly be a bad idea
|
]) // This couldn't possibly be a bad idea
|
||||||
})?
|
})?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter(|i| i.is_some())
|
.flatten()
|
||||||
.map(|i| i.unwrap())
|
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
lateral_views.push(LateralView {
|
lateral_views.push(LateralView {
|
||||||
|
@ -2414,8 +2413,8 @@ impl<'a> Parser<'a> {
|
||||||
top,
|
top,
|
||||||
projection,
|
projection,
|
||||||
from,
|
from,
|
||||||
selection,
|
|
||||||
lateral_views,
|
lateral_views,
|
||||||
|
selection,
|
||||||
group_by,
|
group_by,
|
||||||
cluster_by,
|
cluster_by,
|
||||||
distribute_by,
|
distribute_by,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue