mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +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 {
|
||||
with,
|
||||
body,
|
||||
limit,
|
||||
order_by,
|
||||
limit,
|
||||
offset,
|
||||
fetch,
|
||||
})
|
||||
|
@ -2358,8 +2358,7 @@ impl<'a> Parser<'a> {
|
|||
]) // This couldn't possibly be a bad idea
|
||||
})?
|
||||
.into_iter()
|
||||
.filter(|i| i.is_some())
|
||||
.map(|i| i.unwrap())
|
||||
.flatten()
|
||||
.collect();
|
||||
|
||||
lateral_views.push(LateralView {
|
||||
|
@ -2414,8 +2413,8 @@ impl<'a> Parser<'a> {
|
|||
top,
|
||||
projection,
|
||||
from,
|
||||
selection,
|
||||
lateral_views,
|
||||
selection,
|
||||
group_by,
|
||||
cluster_by,
|
||||
distribute_by,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue