armanm opened a new issue, #6227:
URL: https://github.com/apache/arrow-datafusion/issues/6227
I know very little Rust so apologies for noobe question. I'm using
DataFusion through Elixir and want to analyse user statements before passing
them along to actually perform the query. How do I convert the output of
`parser::DFParser::parse_sql` into JSON?
```rs
parser::DFParser::parse_sql("
CREATE EXTERNAL TABLE foo(c1 int) STORED AS CSV LOCATION 'foo.csv';
select * from foo;
DESCRIBE table;
INSERT INTO users (ss) values ('sdsd');
")
```
I noticed the underlying `sqlparser` crate supports serde trait for
statements but from what I see `datafusion-sql` adds support for a couple more
statements (CREATE EXTERNAL... and DESCRIBE ...) and that crate doesn't support
serde.
What are some options for me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]