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.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now