DeepLcom / sql-mock

A Python library to test your SQL models using mocked input data
MIT License
33 stars 5 forks source link

Do not require mocks for ARRAY JOIN clause arguments #51

Closed smoothml closed 5 months ago

smoothml commented 5 months ago

The ARRAY JOIN clause in Clickhouse is currently recognised as a table that requires a mock by the library. This is not the case as this clause is used for expanding arrays in the source table into separate rows. This commit adds an additional clause to the get_source_tables helper function to ignore joins of kind ARRAY.

Closes #48