sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

WIP: Add Materialize Engine Adapter

Open bobbyiliev opened this issue 1 year ago • 6 comments

As a follow up to the https://github.com/tobymao/sqlglot/pull/3577 PR, starting the initial work to add the SQLMesh Materialize engine adapter.

This is still WIP, just starting with the initial work.

bobbyiliev avatar Jun 06 '24 16:06 bobbyiliev

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 06 '24 16:06 CLAassistant

Excited about the progress! When you are ready, make sure to add materialize here: https://github.com/TobikoData/sqlmesh/blob/0607f65800d231d70fdc2c50c0550c77b39eb873/tests/core/engine_adapter/test_integration.py#L538

These tests ensure that the engine implements the engine adapter interface correctly which tends to pick up most of the issues. It also includes a sushi test now which involves actually running a SQLMesh project. Typically passing these tests is where most of your time will be spent when adding a new engine.

eakmanrq avatar Jun 06 '24 17:06 eakmanrq

hey @bobbyiliev how's progress on this? do you need any assistance?

tobymao avatar Jun 20 '24 03:06 tobymao

hey @bobbyiliev how's progress on this? do you need any assistance?

Hey @tobymao, sorry for the delay here. I will be picking this up again starting tomorrow.

The two main things that are currently left are the fact that Materialize does not support ALTER TABLE and CREATE TABLE .. AS SELECT which I will be looking into tomorrow.

bobbyiliev avatar Jun 20 '24 16:06 bobbyiliev

Hey @tobymao, quick update here, I had a chat with the team regarding the limitation where Materialize does not support ALTER TABLE .. ADD COLUMN .. and we will actually be working on this soon and hope to have this implemented by the beginning of the next quarter. I was thinking that in this case, it might be better to wait for that to get implemented, as SQMesh migrations seem to depend on it quite a bit, and as far as I can tell all other drivers that you currently have, all support it. Let me know what you think!

bobbyiliev avatar Jun 25 '24 16:06 bobbyiliev

@bobbyiliev that's fine. thanks for digging into it. looking forward to adding materialize when it's ready :)

tobymao avatar Jun 25 '24 17:06 tobymao

i'm going to close this now but feel free to reopen when you have @bobbyiliev

tobymao avatar Sep 16 '24 20:09 tobymao