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

   Hey, 
   
   First of all I just want to thank for all the awesome work on this library!
   
   I've came across something that didn't work as expected a couple of months 
ago and created a fix for myself but now took the time to bring it here also. 
I'm sure there are some things left to do so I would appreciate some rubber-🦆 
   
   The issue is when trying to parse create a create statement
   
   
   ```
   // Working
   CREATE TABLE tb (id INT, KEY USING HASH (id))
   ```
   ```
   // Not working
   CREATE TABLE tb (id INT, KEY (id) USING HASH)
   ```
   
   There was also an issue using order on the keys, such as this
   ```
   CREATE TABLE tb (id INT, KEY USING HASH (id ASC))
   ```
   which I'm not entirely sure how you'd like to handle, from my side I just 
did what was the appropriate solution (not using it) but I'd imagine from your 
end that would not be ideal solution. 


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to