All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.6.1...v0.6.2
- Remove unnecessary
printstatement leading to test failures
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.6.0...v0.6.1
- Add default target path for dbt
- Improve replacement of tables (also taking into account missing alias)
- Do not require mocks for ARRAY JOIN clause arguments
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.5.4...v0.6.0
- New BigQuery column types
- Allow cte mocks
- ColumnMock nullable by default
- Path to dbt project.yml file is provided instead of manifest.json
- Array types use other ColumnMock classes as inner type
- Consistent naming of TableMock classes:
- BaseMockTable -> BaseTableMock
- BigQueryMockTable -> BigQueryTableMock
- RedshiftMockTable -> RedshiftTableMock
- SnowflakeMockTable -> SnowflakeTableMock
- Failing on mixed None values #34
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.5.3...v0.5.4
- Clickhouse: Remove numpy dependency
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.5.2...v0.5.3
- Clickhouse: Support for secure connections
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.5.1...v0.5.2
- Removed usage of chdb since it turned out it sometimes does not return results
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.5.0...v0.5.1
- Use chdb to fully mock the Clickhouse connection
- Fixed generation of CTE names from references with hyphens
- Fixed query paths if dbt project is in subdirectory
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.4.0...v0.5.0
- Support for Redshift
- Support for Snowflake
- You can now provide default mocks in table_meta by @Somtom in #19
- Add array column types by @Somtom in #22
- Use sqlglot for table ref replace by @Somtom in #24
- Error handling improvements by @Somtom in #25
- Add dbt support by @Somtom in #26
- Update SQL glot to 20.5.0 by @Somtom in #27
- Fixed quickstart docs by @Somtom in #20
- MockTable classes now have a
_sql_dialectattribute that is used withsglglotfor more reliable dialect conversions
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.2.0...v0.3.0
- Now you can also pass a
queryto thetable_meta. Thequery_pathwill overwrite aqueryin case both are provided - New method
assert_cte_equalthat allows to check the output of a specific CTE in the query you want to test. - Added documentation page
- The
_get_resultsmethod now accepts aqueryinstead of needing to load the query within the method. In case you created custom Mock Table classes, you need to take this into account.
Full Changelog: https://github.com/DeepLcom/sql-mock/compare/v0.1.2...v0.2.0
- Possibility to pass the
query_pathin thetable_metadecorator. This allows to specify the query of a model in a single place instead of always needing to pass it in thefrom_mocksmethod. The provided query can still be overwritten infrom_mocksif necessary. @Somtom in #11 - Improved readme and separated contribution guidelines by @Somtom in #9
- Using
_sql_mock_metaand_sql_mock_dataattributes onBaseMockTableto decrease that chance of interference with the model's column names. By @Somtom in #10
0.1.2 - 2023-10-26
Initial version.