Adez017 commented on code in PR #96:
URL: https://github.com/apache/datafusion-site/pull/96#discussion_r2236406878


##########
content/blog/2025-07-25-async-scaler-udf.md:
##########
@@ -0,0 +1,396 @@
+---
+layout: post
+title: Async Scaler User defined Functions in DataFusion
+date: 2025-07-25
+author: Aditya Singh Rathore
+categories: [tutorial]
+---
+
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
+
+Imagine writing SQL that can call APIs, interact with AI models, or fetch data 
from external storage—all natively within your query. This isn't a dream 
anymore. [Apache DataFusion] has just introduced **Asynchronous User Defined 
Functions (Async UDFs)**, making it one of the **first SQL engines** to support 
native asynchronous operations in query execution.
+
+## The Synchronous Limitation
+
+Traditional [User Defined Functions (UDFs)] in DataFusion (and most SQL 
engines) are synchronous, limiting them to CPU-bound operations. While perfect 
for mathematical calculations or string manipulations, they fall short when you 
need to:
+
+- Make HTTP requests to external APIs (Wikipedia, OpenAI, REST services)
+- Fetch data from cloud object storage on demand
+- Perform I/O-heavy operations or long-running computations
+- Integrate with external databases or microservices
+
+These real-world scenarios often require **waiting** for external 
resources—something synchronous functions simply can't handle efficiently.
+
+[User Defined Functions (UDFs)]: 
https://datafusion.apache.org/python/user-guide/common-operations/udf-and-udfa.html

Review Comment:
   sure , goo one @goldmedal 



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

Reply via email to