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

   Closes #2604.
   
   `Dialect` can override expression, statement and column-option parsing, but 
not table names: `parse_table_factor` always calls `parse_object_name(true)`. A 
downstream dialect with syntax like `FROM events:analytics` has to rewrite 
tokens before parsing.
   
   This adds `parse_table_factor_name`, which works like 
`parse_prefix`/`parse_statement`: return `None` to fall back to the default 
parser. Only the name is replaced; alias, joins, sampling and hints still go 
through the core parser. Note that `ObjectName` prints its parts joined with 
`.`, so custom separators don't round-trip.
   
   `derive_dialect`'s generated imports gain `ObjectName` so derived dialects 
compile.
   
   Tests: `custom_table_factor_name_parser` in 
`tests/sqlparser_custom_dialect.rs`.
   
   Implemented with AI assistance (Claude Code).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01Hb9YMy3Ay2oNWagfTz2KzZ
   


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