apache / apache/datafusion-sqlparser-rs

Support non-UTF-8 character in binary_data

Open
#1,300 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.5k
Forks
772
Avg merge
4d 9h
Merged PRs (30d)
17

Description

`Parser::try_from_sql` and `Parser::parse_sql` both take a `&str` as input.
But `str` only allow for UTF-8 character
Is there any function to parse SQL statement from binary data (eg `Vec`) ?
Is there any plan to support it ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing Parser::try_from_sql and Parser::parse_sql, which currently take &str input. Determine whether supporting binary data requires a new parsing API or a defined decoding policy; done should include an agreed scope and tests demonstrating the intended handling of non-UTF-8 input.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.