Databend Query is a Distributed Query Engine at scale.
astcontains the SQL parser and related parser tooling.catalogdefines catalog-facing abstractions such asCatalog,Database,Table, andTableContext.codegencontains code generators used by query-side crates, including arithmetic result-type generation.configprovides query-service configuration types and parsing.datavaluesis the legacy in-memory value/column representation layer; newer work continues to move towardexpression.expressionis the core scalar expression framework, including expression representation, type checking, and evaluation.formatshandles data serialization and deserialization for external formats.functionsimplements scalar functions, aggregate functions, and related function infrastructure.managementcontains query-side management utilities such as cluster and quota support.pipelineimplements the execution pipeline and scheduling framework for physical operators.scriptcontains script execution support used by the query service.script_udf_supportcontains optional script UDF integrations that are wired into the query service through thescript-udfcargo feature.serviceis thedatabend-queryservice crate and runtime integration layer.settingsdefines global and session settings.sqlcontains SQL-side planning, binding, optimization, and related execution support. Read./sql/README.mdfor crate structure and shared optimizer test-support entry points.storage_stage_supportcontains optional stage-storage integrations that are wired into the query service through thestorage-stagecargo feature.task_supportcontains optional task support integrations that are wired into the query service through thetask-supportcargo feature.storagescontains table engines and storage-layer integrations, including Fuse and related indexing components.usersimplements user, role, and access-control support.eecontains enterprise query functionality.ee_featurescontains enterprise feature modules used by the query layer.