Documentation
ODP 3.3.6.4-1
Release Notes
What is ODP
Installation
Component User guide and Installation Instructions
Upgrade Instructions
Downgrade Instructions
Reference Guide
Security Guide
Troubleshooting Guide
Uninstall ODP
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Custom Functions
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
SQL UDFs
Bash
xxxxxxxxxx-- Register a SQL UDFCREATE FUNCTION square AS 'org.example.Square';SELECT square(column_name) FROM table_name;Bash
xxxxxxxxxx# Register via Pythonclass Square: def evaluate(self, row): return row[0] * row[0] spark.udaf.register("square", Square())spark.sql("SELECT square(value) FROM mytable").show()Python UDFs (Standard)
Bash
xxxxxxxxxxfrom pyspark.sql.functions import udffrom pyspark.sql.types import DoubleType @udf(returnType=DoubleType())def square(x): return float(x * x) data = [("Alice", 3), ("Bob", 4), ("Charlie", 5)]df = spark.createDataFrame(data, ["name", "value"])df.withColumn("squared", square("value")).show()Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on May 14, 2026
Was this page helpful?
Next to read:
Usabilitynull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message