apache / apache/datafusion-sqlparser-rs

Is there a way to parse `table_factor` only?

未关闭
#713 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
3.5k
派生
772
平均合并
4 天 9 小时
30 天内合并 PR
17

描述

I want to parse some table_factor with args like
```rs
"Table(3)"
```
but without parsing full sentense (`SELECT * FROM Table(3)`)

I found there is `fn parse_table_factor` but it seem like it can not be used stand-alone

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先阅读现有的 parse_table_factor 函数和完整语句的解析路径,以了解为什么不能单独调用它。通过 parser 入口点尝试输入 Table(3),并确定能够单独接受 table_factor 的最小公开路径。单独输入能够成功解析,并且在相关的 parser 测试中有覆盖时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust, sql
领域
databases
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。