Connectors
After you have initialized the SDK, the first step is to define a connector to your source tables. The SDK supports connectors for the following sources:
- Amazon S3 (
S3Connector) - Google Cloud Storage (
GCSConnector) - Azure Data Lake Storage (
ADLSConnector) - AWS Glue (
GlueConnector) - Snowflake (
SnowflakeConnector) - BigQuery (
BigQueryConnector) - Databricks (
DatabricksConnector) The examples here use S3, but equivalent steps apply to other supported data warehouses. You can also connect multiple tables across multiple connectors: for example, using S3 and Snowflake together.
If you are using the Kumo Snowpark Container Services edition, the SDK supports only SnowflakeConnector.
Creating a Connector
To create a connector to a dataset on S3, specify the root directory of your data:
You can access tables with Python indexing semantics or with the table() method:
Inspecting Source Tables
The tables customer_src, transaction_src, and stock_src are SourceTable objects, which support basic operations to verify the types and raw data you have connected to Kumo.
For example, you can view a sample of the source data (as a pandas.DataFrame) or inspect the source columns and their data types:
For tables with semantically meaningful text columns, Kumo supports a language model integration that allows for modeling to utilize powerful large language model embeddings, for example from OpenAI’s GPT. Refer to add_llm() for more details.
Data Transformations
In addition to viewing raw source table data, you can perform data transformations using your own data platform alongside the Kumo RDL SDK.
For example, with pyspark:
Uploading Local Tables
For local files, you can use upload_table() to upload Parquet or CSV files directly to Kumo. Kumo supports files larger than 1 GB by default through automatic partitioning. After uploading, access tables through FileUploadConnector.
Key parameters: name (table name), path (local file path), auto_partition (defaults to True for files larger than 1 GB), and partition_size_mb (default 250 MB).