This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 691e72cbc22 Publishing website 2025/03/25 23:39:01 at commit 64b29f6
691e72cbc22 is described below

commit 691e72cbc22ce467a5b14b1e385e616517325d9c
Author: runner <runner@main-runner-frrkx-kcd9n>
AuthorDate: Tue Mar 25 23:39:01 2025 +0000

    Publishing website 2025/03/25 23:39:01 at commit 64b29f6
---
 .../documentation/sdks/yaml-udf/index.html         | 24 ++++++++++++++++++++--
 website/generated-content/sitemap.xml              |  2 +-
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/website/generated-content/documentation/sdks/yaml-udf/index.html 
b/website/generated-content/documentation/sdks/yaml-udf/index.html
index 9556f854309..9b2c91ac4a6 100644
--- a/website/generated-content/documentation/sdks/yaml-udf/index.html
+++ b/website/generated-content/documentation/sdks/yaml-udf/index.html
@@ -35,7 +35,7 @@
 <img class=banner-img-mobile 
src=/images/banners/tour-of-beam/tour-of-beam-mobile.png alt="Start Tour of 
Beam"></a></div><div class=swiper-slide><a 
href=https://beam.apache.org/documentation/ml/overview/><img 
class=banner-img-desktop 
src=/images/banners/machine-learning/machine-learning-desktop.jpg alt="Machine 
Learning">
 <img class=banner-img-mobile 
src=/images/banners/machine-learning/machine-learning-mobile.jpg alt="Machine 
Learning"></a></div></div><div class=swiper-pagination></div><div 
class=swiper-button-prev></div><div 
class=swiper-button-next></div></div><script 
src=/js/swiper-bundle.min.min.e0e8f81b0b15728d35ff73c07f42ddbb17a108d6f23df4953cb3e60df7ade675.js></script>
 <script 
src=/js/sliders/top-banners.min.afa7d0a19acf7a3b28ca369490b3d401a619562a2a4c9612577be2f66a4b9855.js></script>
-<script>function showSearch(){addPlaceholder();var 
e,t=document.querySelector(".searchBar");t.classList.remove("disappear"),e=document.querySelector("#iconsBar"),e.classList.add("disappear")}function
 addPlaceholder(){$("input:text").attr("placeholder","What are you looking 
for?")}function endSearch(){var 
e,t=document.querySelector(".searchBar");t.classList.add("disappear"),e=document.querySelector("#iconsBar"),e.classList.remove("disappear")}function
 blockScroll(){$("body").toggleClass(" [...]
+<script>function showSearch(){addPlaceholder();var 
e,t=document.querySelector(".searchBar");t.classList.remove("disappear"),e=document.querySelector("#iconsBar"),e.classList.add("disappear")}function
 addPlaceholder(){$("input:text").attr("placeholder","What are you looking 
for?")}function endSearch(){var 
e,t=document.querySelector(".searchBar");t.classList.add("disappear"),e=document.querySelector("#iconsBar"),e.classList.remove("disappear")}function
 blockScroll(){$("body").toggleClass(" [...]
 get data into the correct shape. The simplest of these is 
<code>MapToFields</code>
 which creates records with new fields defined in terms of the input 
fields.</p><h2 id=field-renames>Field renames</h2><p>To rename fields one can 
write</p><pre tabindex=0><code>- type: MapToFields
   config:
@@ -317,7 +317,27 @@ a <code>{type: 'basic_type_name'}</code> nesting.</p><pre 
tabindex=0><code>- typ
               items:
                 type: &#39;number&#39;
 </code></pre><p>This can be especially useful to resolve errors involving the 
inability to
-handle the <code>beam:logical:pythonsdk_any:v1</code> 
type.</p></div></div><footer class=footer><div class=footer__contained><div 
class=footer__cols><div class="footer__cols__col footer__cols__col__logos"><div 
class=footer__cols__col__logo><img src=/images/beam_logo_circle.svg 
class=footer__logo alt="Beam logo"></div><div 
class=footer__cols__col__logo><img src=/images/apache_logo_circle.svg 
class=footer__logo alt="Apache logo"></div></div><div class=footer-wrapper><div 
class=wrapper-grid [...]
+handle the <code>beam:logical:pythonsdk_any:v1</code> type.</p><h2 
id=dependencies>Dependencies</h2><p>Often user defined functions need to rely 
on external dependencies.
+These can be provided with a <code>dependencies</code> attribute in the 
transform
+config. For example</p><pre tabindex=0><code>- type: MapToFields
+  config:
+    language: python
+    dependencies:
+      - &#39;scipy&gt;=1.15&#39;
+    fields:
+      new_col:
+        callable: |
+          import scipy.special
+
+          def func(t):
+            return scipy.special.zeta(complex(1/2, t))
+</code></pre><p>The dependencies are interpreted according to the language, 
e.g.
+for Java one provides a list of maven identifiers and/or jars,
+and for Python one provides a list of pypi package specifiers and/or sdist 
tarballs.
+See also the full examples using
+<a 
href=https://github.com/apache/beam/blob/master/sdks/python/apache_beam/yaml/examples/transforms/elementwise/map_to_fields_with_java_deps.yaml>java
 dependencies</a>
+and
+<a 
href=https://github.com/apache/beam/blob/master/sdks/python/apache_beam/yaml/examples/transforms/elementwise/map_to_fields_with_deps.yaml>python
 dependencies</a>.</p></div></div><footer class=footer><div 
class=footer__contained><div class=footer__cols><div class="footer__cols__col 
footer__cols__col__logos"><div class=footer__cols__col__logo><img 
src=/images/beam_logo_circle.svg class=footer__logo alt="Beam logo"></div><div 
class=footer__cols__col__logo><img src=/images/apache_logo_cir [...]
 <a href=https://www.apache.org>The Apache Software Foundation</a>
 | <a href=/privacy_policy>Privacy Policy</a>
 | <a href=/feed.xml>RSS Feed</a><br><br>Apache Beam, Apache, Beam, the Beam 
logo, and the Apache feather logo are either registered trademarks or 
trademarks of The Apache Software Foundation. All other products or name brands 
are trademarks of their respective holders, including The Apache Software 
Foundation.</div></div><div class="footer__cols__col 
footer__cols__col__logos"><div class=footer__cols__col--group><div 
class=footer__cols__col__logo><a href=https://github.com/apache/beam><im [...]
\ No newline at end of file
diff --git a/website/generated-content/sitemap.xml 
b/website/generated-content/sitemap.xml
index e052fcfe2ba..61ffecbdc34 100644
--- a/website/generated-content/sitemap.xml
+++ b/website/generated-content/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset 
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xhtml="http://www.w3.org/1999/xhtml";><url><loc>/blog/beam-2.63.0/</loc><lastmod>2025-03-25T13:28:43+00:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2025-03-25T13:28:43+00:00</lastmod></url><url><loc>/blog/</loc><lastmod>2025-03-25T13:28:43+00:00</lastmod></url><url><loc>/categories/</loc><lastmod>2025-03-25T13:28:43+00:00</lastmod></url><url><loc>/catego
 [...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset 
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xhtml="http://www.w3.org/1999/xhtml";><url><loc>/blog/beam-2.63.0/</loc><lastmod>2025-03-25T15:46:09-07:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2025-03-25T15:46:09-07:00</lastmod></url><url><loc>/blog/</loc><lastmod>2025-03-25T15:46:09-07:00</lastmod></url><url><loc>/categories/</loc><lastmod>2025-03-25T15:46:09-07:00</lastmod></url><url><loc>/catego
 [...]
\ No newline at end of file

Reply via email to