Commit Graph

35 Commits

Author SHA1 Message Date
dal af3cc188aa
exclusion pattern 2025-02-12 14:01:11 -07:00
dal ffbcedb8d5
lol upgrade version 2025-02-12 13:32:23 -07:00
dal a787c9ebaf
Update cli/src/commands/update.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-02-12 12:13:51 -08:00
dal 6e51e417b0
Update cli/src/commands/update.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-02-12 12:13:28 -08:00
dal 21296dba15
Update cli/src/commands/auth.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-02-12 12:12:58 -08:00
dal 08134b3ba3
Update cli/src/commands/auth.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-02-12 12:12:22 -08:00
dal caec707450
Add macOS ARM64 support and enhance CLI authentication and version management 2025-02-12 13:00:29 -07:00
dal 224cbe4d84
tls 1.3 forced 2025-02-12 10:36:25 -07:00
dal 5b6ff85af8
readme for cli 2025-02-12 10:00:26 -07:00
dal 946121fad4
change default url 2025-02-12 09:43:03 -07:00
dal 09ab45bbb5
cli release code 2025-02-12 09:00:02 -07:00
dal bfe61d52e2
nice 👍🏼 2025-02-12 08:27:02 -07:00
dal 59054cfefa
tweak to the diffing bug 2025-02-12 08:14:38 -07:00
dal 616da11b05
Add generate datasets API endpoint and implementation 2025-02-12 06:58:51 -07:00
dal b7659ab7b0
initial gathering 2025-02-12 06:48:29 -07:00
dal d95ea3a99d
ok fixed the local validation issue 2025-02-12 05:45:41 -07:00
dal 61b6cfeffc
database mapping correct 2025-02-12 05:22:36 -07:00
dal c7a631de40
tweak on database from modelfiles 2025-02-12 05:04:34 -07:00
dal e7fedd0a59
working except for bulk in the validation 2025-02-11 15:21:53 -07:00
dal 32efa01b51
validation done. 2025-02-11 12:26:07 -07:00
dal aee795b07b
add in ref 2025-02-11 12:11:05 -07:00
dal 61a545384f
dry run and local validation 2025-02-11 11:36:03 -07:00
dal efd044c6c2
yml files 2025-02-11 10:40:41 -07:00
dal 85c4470eab
adjust the models and lock them down for now 2025-02-11 10:29:57 -07:00
dal 2618166bf8
feat: Expand validation error types for more comprehensive deployment checks
- Add new validation error types: ModelNotFound, InvalidRelationship, and ExpressionError
- Update deploy_v2.rs to categorize and handle these new error types
- Enhance error handling and reporting in dataset deployment process
2025-02-05 23:56:41 -07:00
dal 6e5c299389
feat: improve dataset column validation and deployment process
- Add comprehensive column validation before dataset deployment
- Validate existence of all required columns in source database
- Simplify column type and nullability retrieval
- Enhance error reporting for missing columns
- Update deployment logic to use pre-validated column information
2025-02-05 17:20:11 -07:00
dal f081f3e16e
feat: enhance dataset validation and deployment error handling
- Add detailed validation error logging in CLI
- Improve type compatibility checks in dataset validation
- Modify deployment process to handle and report validation errors more comprehensively
- Add Hash derive for Verification enum
- Update API and CLI to support more informative validation results
2025-02-05 17:04:13 -07:00
dal 66d9528619
refactor: deploy datasets much simpler now 2025-02-05 14:05:12 -07:00
dal 05d613c9ad
chore: update .gitignore to exclude /prds directory 2025-02-04 16:52:54 -07:00
dal 42c6080598
refactor(stored_values): improve background processing and error handling for stored column values
- Refactor stored values processing in dataset deployment to use background task
- Add `StoredValueColumn` struct to encapsulate column processing details
- Implement `process_stored_values_background` for parallel and resilient value storage
- Add logging for successful and failed stored value processing
- Update CLI to handle optional SQL definitions and improve file processing
2025-02-04 12:24:06 -07:00
dal 5202438fa8
Dal/cli-updates-skip-dbt (#67)
* feat: enhance deploy command with skip_dbt option

- Updated the Deploy command to accept a `skip_dbt` boolean argument, allowing users to bypass the dbt run during deployment.
- Refactored the deploy function to conditionally execute the dbt command based on the `skip_dbt` flag, improving deployment flexibility.

* Refactor query engine and CLI commands for improved functionality and error handling

- Updated `get_bigquery_columns` and `get_snowflake_columns` functions to enhance column name handling and ensure proper error reporting.
- Modified `get_snowflake_client` to accept a database ID for better connection management.
- Enhanced the `deploy` command in the CLI to include additional parameters (`path`, `data_source_name`, `schema`, `env`) for more flexible deployments.
- Improved error handling and reporting in the `deploy` function, including detailed summaries of deployment errors and successful file processing.
- Updated `get_model_files` to accept a directory path and added checks for file existence, enhancing robustness.
- Adjusted model file structures to include schema information and refined the upload process to handle optional parameters more effectively.

These changes collectively improve the usability and reliability of the query engine and deployment process.

* Update dataset DDL generation to include optional YML file content

- Modified `generate_sql_agent` to append optional YML file content to dataset DDL
- Ensures more comprehensive dataset representation during SQL agent generation
- Handles cases where YML file might be present or absent gracefully
2025-01-24 16:00:38 -08:00
dal 1f1df4a7bb
Refactor dataset deployment logic and enhance request structure
- Introduced a new `is_simple` flag in the `deploy_datasets` function to differentiate between full and simple dataset deployments.
- Updated the `deploy_datasets_handler` to accept the `is_simple` parameter, allowing for conditional processing of inserted datasets.
- Modified the `DeployDatasetsRequest` struct to include an optional `id` and `type_` field, enhancing the request's flexibility.
- Adjusted the handling of the `yml_file` field to be optional in the `DeployDatasetsRequest` struct.
- Updated the `process_batch` function to handle "USER-DEFINED" data types in addition to existing types.

These changes improve the dataset deployment process by allowing for more granular control and flexibility in handling different dataset types.
2025-01-11 15:17:01 -07:00
dal c2cd564251
Refactor dataset API to deploy datasets and update related structures
- Replaced the existing `post_datasets` endpoint with a new `deploy_datasets` endpoint to better reflect its purpose.
- Deleted the `post_datasets` module and its associated logic, streamlining the codebase.
- Updated the request and response structures to use `DeployDatasetsRequest` and related types, enhancing clarity and maintainability.
- Adjusted the BusterClient to utilize the new endpoint for deploying datasets, ensuring consistency across the API.

These changes improve the API's functionality by providing a clearer and more focused approach to dataset deployment, facilitating better data management.
2025-01-09 09:31:29 -07:00
dal c74016d3bd
Add yml_file field to Dataset model and related API structures
- Introduced a new optional `yml_file` field in the Dataset model to store YAML file references.
- Updated the database schema to include the `yml_file` column in the datasets table.
- Modified various API request and response structures to accommodate the new `yml_file` field.
- Enhanced dataset handling functions to support the inclusion of `yml_file` in dataset operations.

These changes improve the dataset management capabilities by allowing the association of YAML files with datasets, facilitating better data organization and retrieval.
2025-01-08 22:33:14 -07:00
dal d4bd71b988 Refactor buster-cli model structures and update YAML templates
- Renamed `semantic_models` to `models` in YAML template and related structures for consistency.
- Changed `expr` field type in `PostDatasetsEntityRelationshipsRequest` from `Vec<String>` to `String` to simplify data handling.
- Updated `BusterModel` struct to reflect the new `models` naming and removed unused `ModelDefaults` struct.
- Adjusted tests to align with the updated model structure.

These changes enhance clarity and maintainability in the model representation and data handling within the buster-cli.
2025-01-03 13:26:48 -07:00