LogicReasonerConfig
Configure rule-execution defaults for the logic reasoner.
Set these fields under reasoners.logic to control how the logic reasoner
runs rules (for example, whether to use LQP) and to opt into an LQP
semantics version when required.
Examples
Section titled “Examples”Minimal YAML (in raiconfig.yaml):
default_connection: sfconnections: sf: type: snowflake # ...reasoners: logic: incremental_maintenance: "on"Configure logic reasoner settings using a dict:
from relationalai.config import create_config
cfg = create_config( reasoners={"logic": {"use_lqp": True, "lqp": {"semantics_version": "1"}}})Configure logic reasoner settings using an explicit LogicReasonerConfig instance:
from relationalai.config import create_config, LogicReasonerConfig
cfg = create_config( reasoners={ "logic": LogicReasonerConfig(use_lqp=True, lqp={"semantics_version": "1"}) },)Attributes
Section titled “Attributes”.use_lqp
Section titled “.use_lqp”LogicReasonerConfig.use_lqp: boolWhether to use LQP for rule execution.
.incremental_maintenance
Section titled “.incremental_maintenance”LogicReasonerConfig.incremental_maintenance: (str, optional)Incremental maintenance strategy string.
Can be set to "all", "auto", or "off" (default).
.emit_constraints
Section titled “.emit_constraints”LogicReasonerConfig.emit_constraints: boolWhether to emit constraints during execution.
.readonly_queries
Section titled “.readonly_queries”LogicReasonerConfig.readonly_queries: boolWhen enabled, LQP queries whose model is unchanged since the previous execution are sent as read-only transactions. This avoids write-transaction serialization at the cost of view caching. Disabled by default.
.direct_iceberg
Section titled “.direct_iceberg”LogicReasonerConfig.direct_iceberg: boolRead Iceberg source tables directly through the Iceberg REST catalog
instead of through CDC replication. When enabled, a source table that
Snowflake reports as Iceberg skips CDC entirely: the model deploy
declares it to the engine as IcebergData (in the model’s data
fragment) and the engine scans it from the catalog itself. Direct LQP
pipeline (lqp.compiler = "direct") only; the legacy path ignores it.
.iceberg
Section titled “.iceberg”LogicReasonerConfig.iceberg: ReasonerLogicIcebergConfigDirect-Iceberg parameterization for non-NativeApp topologies
(introspection connection, catalog URI/scope). Experimental.
See ReasonerLogicIcebergConfig for details.
LogicReasonerConfig.lqp: ReasonerLogicLqpConfigLQP-specific options, such as semantics_version.
See ReasonerLogicLqpConfig for details.