alamb commented on issue #13563:
URL: https://github.com/apache/datafusion/issues/13563#issuecomment-2498989436

   I looked around in sqlparser-rs briefly and it seems this syntax is not yet 
supported
   
   
https://github.com/search?q=repo%3Aapache%2Fdatafusion-sqlparser-rs%20tablesample&type=code
   
   (though the keyword is)
   
   I suggest adding support for this clause in sqlparser first and then we can 
add a rewrite pass that converts the `TABLESAMPLE` clause into a where clause, 
similar to what we do for `SHOW TABLES`:
   
   
https://github.com/apache/datafusion/blob/000288ce3ec4cb11803c5b37680d6cddfa01c57e/datafusion/sql/src/statement.rs#L1068-L1089


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