Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
//! Register the queries functions and classes.
//! Register the queries functions and classes, and the shared parse call depth.

use crate::analysis::_helpers::queries::parse_warehouse_type;
use crate::analysis::_helpers::queries::query_fingerprint;
use pyo3::prelude::{Bound, PyModule, PyModuleMethods, PyResult};
use pyo3::wrap_pyfunction;
use sqlbuild_analysis::parse_guard::constants::MAX_FUNCTION_CALL_DEPTH;
use sqlbuild_python_project::analysis::main::register_binding_catalog::register_binding_catalog;
use sqlbuild_python_project::references::main::register_explicit_references::register_explicit_references;

Expand All @@ -15,5 +16,6 @@ pub fn register_queries(module: &Bound<'_, PyModule>) -> PyResult<()> {
crate::analysis::_helpers::binding_locations::register(module)?;
module.add_function(wrap_pyfunction!(query_fingerprint, module)?)?;
module.add_function(wrap_pyfunction!(parse_warehouse_type, module)?)?;
module.add("MAX_FUNCTION_CALL_DEPTH", MAX_FUNCTION_CALL_DEPTH)?;
Ok(())
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use sqlbuild_analysis::fingerprint_storage::constants::{
COLUMN_TARGET_DATABASE, COLUMN_TARGET_NAME, COLUMN_TARGET_SCHEMA, COLUMN_TIMESTAMP,
COLUMN_VERSION_HASH, NODE_TYPE_MODEL, NODE_TYPE_SEED,
};
use sqlbuild_analysis::parse_guard::constants::MAX_FUNCTION_CALL_DEPTH;
use sqlbuild_analysis::snowflake_cost::constants::QUERY_TAG_APP;
use sqlbuild_cli::compute_logs::constants::{
COMPUTE_LOG_FORMAT_VERSION, DEFAULT_RETENTION_COUNT, MAX_READ_BYTES,
Expand Down Expand Up @@ -142,7 +141,6 @@ pub(crate) const EXPORTED_INTEGERS: &[(&str, i64)] = &[
"CUSTOM_HOST_PROTOCOL_VERSION",
CUSTOM_HOST_PROTOCOL_VERSION as i64,
),
("MAX_FUNCTION_CALL_DEPTH", MAX_FUNCTION_CALL_DEPTH as i64),
];
/// Text tuples exported under their Python names.
pub(crate) const EXPORTED_TEXT_TUPLES: &[(&str, &[&str])] = &[(
Expand Down
Loading