Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Implementation:Astronomer Astronomer cosmos StarRocksUserPasswordProfileMapping

From Leeroopedia


Knowledge Sources
Domains Profile_Mapping, StarRocks
Last Updated 2026-02-07 17:00 GMT

Overview

Concrete tool for mapping Airflow starrocks connections to dbt starrocks profiles provided by astronomer-cosmos. This is a community-contributed profile mapping.

Description

The StarRocksUserPasswordProfileMapping maps an Airflow starrocks connection to a dbt starrocks profile. It translates connection parameters (host, login, password, schema, port, extras) into the YAML structure that dbt expects in `profiles.yml`. This is a community-contributed adapter (is_community=True).

Usage

Use this profile mapping when configuring Cosmos to run dbt commands against a StarRocks backend. Assign it to `ProfileConfig(profile_mapping=...)` when the target Airflow connection uses the `starrocks` connection type.

Code Reference

Source Location

Signature

class StarRocksUserPasswordProfileMapping(BaseProfileMapping):
    airflow_connection_type: str = "starrocks"
    dbt_profile_type: str = "starrocks"
    is_community: bool = True

Import

from cosmos.profiles.starrocks import StarRocksUserPasswordProfileMapping

I/O Contract

Inputs

Name Type Required Description
conn_id str Yes Airflow connection ID for StarRocks

Outputs

Name Type Description
profile dict dbt profile YAML dictionary
env_vars dict Environment variables for secret fields

Usage Examples

from cosmos.config import ProfileConfig
from cosmos.profiles.starrocks import StarRocksUserPasswordProfileMapping

profile_config = ProfileConfig(
    profile_name="default",
    target_name="dev",
    profile_mapping=StarRocksUserPasswordProfileMapping(conn_id="starrocks_default"),
)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment