cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

UUID/GUID Datatype in Databricks SQL

avidex180899
New Contributor II

Hi all,

I am trying to create a table with a GUID column.

I have tried using GUID, UUID; but both of them are not working.

Can someone help me with the syntax for adding a GUID column?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Aviral-Bhardwaj
Esteemed Contributor III

Hey @Avinash Narasimhan​ ,

image.png 

What is the exact problem you are getting

can you please share it is working fine for me

Thanks

Aviral Bhardwaj

View solution in original post

3 REPLIES 3

Aviral-Bhardwaj
Esteemed Contributor III

Hey @Avinash Narasimhan​ ,

image.png 

What is the exact problem you are getting

can you please share it is working fine for me

Thanks

Aviral Bhardwaj

Hi @Aviral Bhardwaj​ ,

My issue has been resolved. So I was supposed to make one of my columns as a UUID data type. But then I decided to make it as a STRING data type and insert uuid's directly from the code and I am currently using that approach.

Thanks for your input!

Aviral-Bhardwaj
Esteemed Contributor III

nice to know keep it up

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.