LucaCappelletti94 commented on code in PR #2037: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2037#discussion_r2362187922
########## src/ast/ddl.rs: ########## @@ -3262,7 +3280,9 @@ pub struct CreateTrigger { pub referencing: Vec<TriggerReferencing>, /// This specifies whether the trigger function should be fired once for /// every row affected by the trigger event, or just once per SQL statement. - pub trigger_object: TriggerObject, + /// This is optional in some SQL dialects, such as SQLite, and if not specified, in + /// those cases, the implied default is `FOR EACH ROW`. Review Comment: I thought it was important to specify why it is optional, as otherwise other developers which are not familiar with the peculiarities of SQLite might in the future attempt to remove the `Option`. I have added a test for this case, sure, but I believe it best to put this information immediately next to the type. -- 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