cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Version Controlling SQL Query snippets

alexiswl
Contributor

Hello,

I have a suite of SQL Queries for creating table views (i.e)

```

 CREATE OR REPLACE VIEW silver.filtered_samples.metadata_table AS (

  SELECT

*

FROM bronze.samples.table

  WHERE sample_status ='pass'

 )

```

I have tried moving these a repo but I get the error Cannot move DBSQL object into a repo.

What is the best approach? Do I just have to use notebooks with a single '%sql' magic block?

Is support for version controlling SQL queries coming soon? If not, can this be put on the roadmap?

1 ACCEPTED SOLUTION

Accepted Solutions

daniel_sahal
Esteemed Contributor

@Alexis Lucattini​ 

You're right, the best approach would be to use notebooks with a single %sql magic block.

View solution in original post

1 REPLY 1

daniel_sahal
Esteemed Contributor

@Alexis Lucattini​ 

You're right, the best approach would be to use notebooks with a single %sql magic block.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group