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

   Before this PR, PostgreSQL's `FROM tbl_name*` syntax (asterisk explicitly 
indicating that descendant tables should be included) failed to parse:
   
   ```sql
   SELECT * FROM tbl_name*
   ```
   
   This was already supported for `TRUNCATE TABLE name*` and `LOCK TABLE 
name*`, but not for regular `FROM` items.
   
   Docs: https://www.postgresql.org/docs/current/sql-select.html#SQL-FROM
   
   ## Fix
   - Added a `has_trailing_asterisk` field to `TableFactor::Table`, parsed the 
same way as the existing asterisk handling in `TRUNCATE`/`LOCK TABLE`.
   - Renamed the pre-existing `has_asterisk` fields on `TruncateTableTarget` 
and `LockTableTarget` to `has_trailing_asterisk` for naming consistency.
   
   This PR was created with AI assistance.


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