CompilerConfig
relationalai.config.config_fields
Configure compiler behavior for query translation.
This controls client-side compilation defaults such as strictness, output formatting, and a few experimental optimization flags.
Examples
Section titled “Examples”Minimal YAML (in raiconfig.yaml):
default_connection: sfconnections: sf: type: snowflake # ...compiler: strict: true soft_type_errors: trueConfigure compiler settings using a dict:
>>> from relationalai.config import Config>>> cfg = Config(... compiler={"dry_run": True, "strict": True, "soft_type_errors": True},... )Configure compiler settings using an explicit CompilerConfig instance:
>>> from relationalai.config import CompilerConfig, Config>>> cfg = Config(... compiler=CompilerConfig(dry_run=True, strict=True, soft_type_errors=True),... )Attributes
Section titled “Attributes”.soft_type_errors
Section titled “.soft_type_errors”CompilerConfig.soft_type_errors: boolTreat type errors as warnings instead of failures.
Inheritance Hierarchy
Section titled “Inheritance Hierarchy”Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Configure PyRel └── Configure execution behavior ├── Enable or disable strict mode └── Enable or disable soft error mode