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.
| Operation Type | API | Description |
|---|---|---|
| Session APIs | Loads a dataset from a specified database. | |
| Configures the temporary workspace required for function deployment by setting necessary credentials and storage details. | ||
| Executes a SQL query and returns the result. | ||
| Dataset APIs | Retrieves a collection of all column names in a dataset. | |
| Adds columns to a dataset. | ||
| Removes columns from a dataset. | ||
| Aggregates the dataset using specified grouping fields and aggregation functions. | ||
| Calculates the total number of rows in a dataset. | ||
| Executes expressions. | ||
| Filters out rows that do not meet specified conditions. | ||
| Applies a given function to each row of the dataset and flattens the results. | ||
| Applies a given function to batch data. | ||
| Creates a grouped dataset. | ||
| Performs a join operation between two datasets. | ||
| Applies a given function to each row of the current dataset. | ||
| Sorts a dataset based on one or more expressions. | ||
| Renames columns in a dataset. | ||
| Returns the schema of a dataset. | ||
| Selects specified columns from a dataset. | ||
| Displays the data generated by the query results. | ||
| Returns up to limit rows from the dataset, ideal for data inspection and previewing. | ||
| Calculates the maximum value of specified columns in a dataset. | ||
| Calculates the minimum value of specified columns in a dataset. | ||
| Calculates the mean value of specified columns in a dataset. | ||
| Calculates a set of unique values from a specified column in a dataset. | ||
| Selects rows from the current dataset starting at a given offset. | ||
| Returns up to batch_size rows from a dataset. | ||
| Restores a job instance based on the job ID. | ||
| Generates the execution plan for a job. | ||
| Executes a query and generates a performance report with detailed metrics from the execution process. | ||
| Table APIs | Inserts a dataset into a database table. | |
| Displays the first N rows of a table. | ||
| Converts the current table object into a dataset object. | ||
| Adds one or more columns to a table. | ||
| Removes one or more columns from a table. | ||
| Changes the data type of a specified column in a table. | ||
| Renames a column in a table. | ||
| Deletes rows from a table that meet the specified condition. | ||
| Updates rows in a table that satisfy the given conditions. | ||
| Creates a table in a specified database. | ||
| Removes a specified dataset from the database. | ||
| Describes the tables in a specified database. | ||
| Deletes a table from a specified database. | ||
| Lists all tables in a specified or the default database. | ||
| Opens a table in a specified database. | ||
| I/O APIs | Reads text files from a specified OBS path and writes them to a dataset. | |
| Reads JSON files from a specified OBS path and writes them to a dataset. | ||
| Writes text data to a specified OBS path. | ||
| Writes JSON data to a specified OBS path. | ||
| Writes data to a specified Iceberg table. | ||
| Writes data to a specified ORC table. | ||
| Writes data to a specified Parquet table. | ||
| UDF APIs | Returns the function signature and return value type of the UDF from the backend database. | |
| Returns the UDF from the backend database. | ||
| Returns the names of all UDFs from the backend database. | ||
| Deletes a specified UDF from the backend database. | ||
| Registers a UDAF. | ||
| Registers a new scalar UDF. | ||
| Registers a new UDTF. | ||
| Deletes a UDF from a specified database. | ||
| Describes functions in a specified database. | ||
| Retrieves a UDF from a specified or default database. | ||
| Lists all UDFs in a specified or default database. | ||
| AI APIs | Uses a LLM to generate text and adds it as a new column to a dataset. Ensure that model_name has been registered. | |
| Creates an abstract local model to be bound to a remote LLM service. | ||
| Queries all models in a specified or default database. | ||
| Deletes the abstract local model with a specified name. | ||
| Queries the details of a specified model. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot