Skip to content

Create test pattern for Spans #1563

Open
@alamb

Description

@alamb

Part of #1548

Usecase

We would like to add span information through out the rest of the AST structures (see docs in #1549) and list on #1548

In order to support this feature reasonably, we need to be able to test the feature and avoid regressions

Proposal

I think we need some sort of span test.

I recommend

  1. A new test binary like tests/sqlparser_spans.rs

Then add a test that

  1. Parses a SQL string
  2. Check the spans of the AST nodes match what is expected

I think we'll have to use judgement on how fine grained the location information
can / should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions