Hi all !
I have the projet to add a Dremio adapter to dbt,
as an easy solution to recreate needed datasets on the datalineage DAG after a dataset change.
Currently there is no way to create a schema (path) but to use the api.
Could it be possible to have a CREATE SCHEMA command ?
In order to provide CI/CD features to dremio, I am trying to leverage dbt on dremio, and had a little success. In datalakes, CREATE TABLE will silently create the folder, but nope for CREATE VIEW in spaces. Now dremio is really missing standard CREATE/DROP SCHEMA DDL commands.With these commands, we could use dbt to fully automate shared or user spaces upgrades, version control entire dremio projects, and even use a CI/CD approach.
Could it be possible to see these commands available in near future ?
CREATE [IF NOT EXISTS] SCHEMA|FOLDER “my_space”.“my_subspace”
DROP [IF EXISTS] SCHEMA|FOLDER “my_space”.“my_subspace” [CASCADE]
Once again, thank you for providing us with such a great tool !
For example, in SQLServer I could create a Schema (Space in your terms) via TSQL, then create views in that Schema (space) in TSQL. At that point, I can have everything in one place/technology
It’s (to me and others I’m sure) inconsistent to have to create the space via a REST call from some other script.
I am trying the dbt Dremio adapter from @fetanchaud which actually would address many deployment issues to different environments in CI context.
…but that aside, it remains nonsensical to me that you cannot create Spaces via a SQL statement.
@patricker provided an implementation for such a command more than one year ago, but it was not incorporated in dremio code. It’s imho sad because others oss projects do not hesitate in incorporating contributions (dbt )
As a workaround, CREATE VIEW could implicitly create the (possibly inexisting) SPACE the view is located in.
I strongly feel that dremio+dbt could be an amazing open source solution for enterprise data transformations !
Two years have passed, am I the only one to use dremio mainly as a db engine (I mean in plain SQL, not using the GUI) and with the need of a CREATE SCHEMA command ?