Skip to content

Commit b2ac684

Browse files
Ajit Pratap SinghAjit Pratap Singh
authored andcommitted
fix(parser): drop unused startPos in parseSnowflakeStageStatement, add LS test (#483)
1 parent af12174 commit b2ac684

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/sql/parser/parser.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,6 @@ func (p *Parser) parseSnowflakeUseStatement() (ast.Statement, error) {
779779
// ';' or EOF and returned as a DescribeStatement placeholder tagged with the
780780
// operation kind. No AST modeling yet; follow-up work.
781781
func (p *Parser) parseSnowflakeStageStatement(kind string) (ast.Statement, error) {
782-
startPos := p.currentLocation()
783-
_ = startPos
784782
p.advance() // Consume leading kind token
785783

786784
// COPY INTO: consume the INTO keyword if present.

pkg/sql/parser/snowflake_stage_ops_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ func TestSnowflakeStageOps(t *testing.T) {
2828
"list_stage": `LIST @my_stage`,
2929

3030
"remove_from_stage": `REMOVE @my_stage/old_files`,
31+
32+
"ls_alias": `LS @my_stage`,
3133
}
3234
for name, q := range queries {
3335
q := q

0 commit comments

Comments
 (0)