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
print
statement 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_dialect
attribute that is used withsglglot
for 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
query
to thetable_meta
. Thequery_path
will overwrite aquery
in case both are provided - New method
assert_cte_equal
that allows to check the output of a specific CTE in the query you want to test. - Added documentation page
- The
_get_results
method now accepts aquery
instead 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_path
in thetable_meta
decorator. This allows to specify the query of a model in a single place instead of always needing to pass it in thefrom_mocks
method. The provided query can still be overwritten infrom_mocks
if necessary. @Somtom in #11 - Improved readme and separated contribution guidelines by @Somtom in #9
- Using
_sql_mock_meta
and_sql_mock_data
attributes onBaseMockTable
to decrease that chance of interference with the model's column names. By @Somtom in #10
0.1.2 - 2023-10-26
Initial version.