sunng87 commented on issue #2893:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/issues/2893#issuecomment-7125124081

   > My primary motication was having vendor-specific parsing logic in each 
dialect rather than one huge parser full of conditionals.
   
   Thanks for bringing this up @andygrove . I'm +1 for the motivation. In 
greptimedb we have a custom dialect of RANGE QUERY:
   
   ```sql
      SELECT ts, host, min(val) RANGE '5m'
      FROM host
      WHERE ts > now() - '1 day'
      ALIGN '1m' BY (host) FILL LINEAR
      ORDER BY host, ts;
   ```
   
   We were unable to implement this properly with current v1 sqlparser and has 
been forking the parser and datafusion just for this, which makes our 
datafusion upgrade painful enough.
   
   I just made some POC with coding agent and saw some gaps with fitting our 
RANGE QUERY dialect into the hooks. Will move my detailed input to #2910 


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