Skip to content

Releases: DeepLcom/sql-mock

v0.6.2

17 Apr 10:06
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.1...v0.6.2

v0.6.1

08 Apr 07:45
Compare
Choose a tag to compare

Changelog

Fixed

  • 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

v0.6.0

28 Jan 09:11
Compare
Choose a tag to compare

Changelog

Added

Changed

  • ColumnMock nullable by default

Breaking Changes

  • 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

Fixed

  • Failing on mixed None values #34

Migration guide to v0.6.0

Rename the usage of Table Mock classes

Since fixed the inconsistent naming for Table Mocks, you need to make sure to rename your base classes wherever used:

  • BaseMockTable -> BaseTableMock
  • BigQueryMockTable -> BigQueryTableMock
  • RedshiftMockTable -> RedshiftTableMock
  • SnowflakeMockTable -> SnowflakeTableMock

Dbt projects

Previously for dbt project you would provide the path to your manifest file. This now needs to change to provide the path to the dbt_project.yml

from sql_mock.config import SQLMockConfig

SQLMockConfig.set_dbt_project_path('/path/to/your/dbt_project.yml')

Full Changelog: v0.5.4...v0.6.0

v0.5.4

24 Jan 09:33
Compare
Choose a tag to compare

Full Changelog: v0.5.3...v0.5.4

Use vanilla query method to avoid some issues that we saw with NULL values on Clickhouse

v0.5.3

24 Jan 07:19
Compare
Choose a tag to compare

What's Changed

  • Support secure connection to Clickhouse by @Somtom in #40

Full Changelog: v0.5.2...v0.5.3

v0.5.2

23 Jan 10:33
Compare
Choose a tag to compare

Reverted usage of chdb since it sometimes returned empty results for bigger queries

v0.5.1

23 Jan 10:18
Compare
Choose a tag to compare

What's Changed

  • Corrected title (ClickHouse -> Redshift) by @ravi77o in #31
  • replacing hyphens in MockTableMeta cte_name by @mcnick in #32
  • Use chdb package to fully mock Clickhouse connection

Full Changelog: v0.5.0...v0.5.1

v0.5.0

07 Jan 14:38
34c3723
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0

30 Dec 10:08
Compare
Choose a tag to compare

Added

Changed

Fixed

Full Changelog: v0.3.1...v0.4.0

v0.3.1

17 Nov 07:44
a12d9b5
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1