Updated on 2026-11-06 GMT+08:00

Aura DataFrame SDK Summary

Aura DataFrame APIs are classified into five types: data processing, data management, input/output, utility, and action.

  • Data processing: Offers a variety of transformation operations such as map(), flat_map(), filter(), join(), and groupby() to perform feature engineering and structured data manipulation on datasets.
  • Data management: Provides capabilities for dataset create, read, update, delete (CRUD) operations, including insert(), update(), delete(), and index creation/deletion, enabling comprehensive lifecycle management.
  • Input/output: Supports seamless integration with popular lakehouse formats like Parquet and Iceberg for efficient data writing.
  • Utility: Includes functions like schema(), columns(), and explain_plan() for metadata queries and execution plan analysis, aiding in debugging and optimization.
  • Action: Uses methods such as execute(), limit(), and take() to initiate computations and retrieve results, supporting lazy loading and on-demand execution.
Table 1 API overview

Operation Type

API

Description

Session APIs

load_dataset

Loads a dataset from a specified database.

set_function_staging_workspace

Configures the temporary workspace required for function deployment by setting necessary credentials and storage details.

sql

Executes a SQL query and returns the result.

Dataset APIs

columns

Retrieves a collection of all column names in a dataset.

add_column

Adds columns to a dataset.

drop_columns

Removes columns from a dataset.

aggregate

Aggregates the dataset using specified grouping fields and aggregation functions.

count

Calculates the total number of rows in a dataset.

execute

Executes expressions.

filter

Filters out rows that do not meet specified conditions.

flat_map

Applies a given function to each row of the dataset and flattens the results.

map_batches

Applies a given function to batch data.

groupby

Creates a grouped dataset.

join

Performs a join operation between two datasets.

map

Applies a given function to each row of the current dataset.

order_by

Sorts a dataset based on one or more expressions.

rename_columns

Renames columns in a dataset.

schema

Returns the schema of a dataset.

select_columns

Selects specified columns from a dataset.

show

Displays the data generated by the query results.

take

Returns up to limit rows from the dataset, ideal for data inspection and previewing.

max

Calculates the maximum value of specified columns in a dataset.

min

Calculates the minimum value of specified columns in a dataset.

mean

Calculates the mean value of specified columns in a dataset.

unique

Calculates a set of unique values from a specified column in a dataset.

limit

Selects rows from the current dataset starting at a given offset.

take_batch

Returns up to batch_size rows from a dataset.

create_async_job

Restores a job instance based on the job ID.

explain_plan

Generates the execution plan for a job.

explain_performance

Executes a query and generates a performance report with detailed metrics from the execution process.

Table APIs

insert

Inserts a dataset into a database table.

show

Displays the first N rows of a table.

to_dataset

Converts the current table object into a dataset object.

add_columns

Adds one or more columns to a table.

drop_columns

Removes one or more columns from a table.

alter_column_type

Changes the data type of a specified column in a table.

rename_column

Renames a column in a table.

delete

Deletes rows from a table that meet the specified condition.

update

Updates rows in a table that satisfy the given conditions.

create_table

Creates a table in a specified database.

delete_table

Removes a specified dataset from the database.

describe_table

Describes the tables in a specified database.

drop_table

Deletes a table from a specified database.

list_tables

Lists all tables in a specified or the default database.

open_table

Opens a table in a specified database.

I/O APIs

read_text

Reads text files from a specified OBS path and writes them to a dataset.

read_json

Reads JSON files from a specified OBS path and writes them to a dataset.

write_text

Writes text data to a specified OBS path.

write_json

Writes JSON data to a specified OBS path.

write_iceberg

Writes data to a specified Iceberg table.

write_orc

Writes data to a specified ORC table.

write_parquet

Writes data to a specified Parquet table.

UDF APIs

signature

Returns the function signature and return value type of the UDF from the backend database.

get

Returns the UDF from the backend database.

names

Returns the names of all UDFs from the backend database.

unregister

Deletes a specified UDF from the backend database.

create_agg_function

Registers a UDAF.

create_scalar_function

Registers a new scalar UDF.

create_table_function

Registers a new UDTF.

delete_function

Deletes a UDF from a specified database.

describe_function

Describes functions in a specified database.

get_function

Retrieves a UDF from a specified or default database.

list_functions

Lists all UDFs in a specified or default database.

AI APIs

ai_generate

Uses a LLM to generate text and adds it as a new column to a dataset. Ensure that model_name has been registered.

create_model

Creates an abstract local model to be bound to a remote LLM service.

list_models

Queries all models in a specified or default database.

drop_model

Deletes the abstract local model with a specified name.

describe_model

Queries the details of a specified model.