LucaCappelletti94 commented on code in PR #2095:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2095#discussion_r2564392933


##########
src/ast/mod.rs:
##########
@@ -9099,8 +9099,19 @@ pub enum CreateFunctionBody {
     /// OPTIONS(description="desc");
     /// ```
     ///
+    /// For PostgreSQL C functions with object file and link symbol:
+    /// ```sql
+    /// CREATE FUNCTION cas_in(input cstring) RETURNS cas
+    /// AS 'MODULE_PATHNAME', 'cas_in_wrapper'
+    /// ```
+    ///
     /// [BigQuery]: 
https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#syntax_11
-    AsBeforeOptions(Expr),
+    AsBeforeOptions {
+        /// The primary expression (object file path for C functions, or 
regular expression)
+        body: Expr,
+        /// Optional link symbol for C language functions
+        link_symbol: Option<Expr>,

Review Comment:
   Done, for some reason I could not apply the change from here.



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