[FORMATTING] Unable to parse Hive syntax: STRUCT<x: INT64, y:STRING>

Open
#735 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
sql, typescript
Domain
tooling

Research direction

Reproduce the reported Hive input, STRUCT<x: INT64, y:STRING>, with the formatter and inspect the SQL parsing path that reports the unexpected STRING token. Done means this syntax parses successfully and produces the expected unchanged formatted output.

Written by the indexing model from the issue text.

Description

bug hive

Input data

Which SQL and options did you provide as input?

STRUCT<x: INT64, y:STRING>

Expected Output

STRUCT<x: INT64, y:STRING>

Actual Output

ERROR: Parse error: Unexpected: STRING

Usage

  • How are you calling / using the library?
  • What SQL language(s) does this apply to?
  • Which SQL Formatter version are you using?
Dominant language
TypeScript
Stars
2.9k
Forks
456
Avg merge
3d 4h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sql-formatter-org/sql-formatter

All issues in sql-formatter-org/sql-formatter

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.