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

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