MartinSahlen opened a new pull request, #1657:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1657

   In BigQuery, it's possible to have statements like these (added tests for 
them):
   
   ```sql
   CREATE TABLE foo (x INT64) OPTIONS()
   ```
   
   ```sql
   CREATE TABLE db.schema.test (x INT64 OPTIONS(description = 'An optional 
INTEGER field')) OPTIONS()
   ```
   
   While this may look silly (and clearly is), it's very common that companies 
are using tools (like dbt) to generate the SQL based on a certain configuration 
defined at runtime using macros and other abominations (but that is off-topic). 
   
   This PR, with tests, allows specifying empty options. Seeing that all tests 
run, this can hopefully be merged quickly. Also ran `fmt` and `clippy`.


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to