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:ย 

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

AviralBhardwaj

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

AviralBhardwaj

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

AviralBhardwaj

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