cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

Equivalent of Oracle's CLOB in Databricks

VCA50380
Contributor

Dear all,


(migrating for an on-premise Oracle ...)

The question is in the subject: "What is the equivalent of Oracle's CLOB in Databricks" ?
I saw that the "string" type can go up to 50 thousands characters, which is quite good in most of our cases, but this would not cover all.
Also, I don't need this only as data-type for a column in a table, but currently in Oracle we are also concatenating or "aggregating" texts into some CLOB for a usage in a procedure / function, etc... What would be the paths to do the same in Databricks ?

Thanks!
Vinc

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,
Gemini gave me some answers. I'll investigate from there.

Thanks

View solution in original post

3 REPLIES 3

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @VCA50380,

For concatenating or aggregating texts similar to how you use CLOBs in Oracle procedures or functions, you can use the concat function in Databricks. Here is an example of how you can concatenate strings:

SELECT concat(string1, string2, string3) AS concatenated_string
FROM your_table;
 

VCA50380
Contributor

Hello;
Thanks for the answer.
For the concatenation itself, it is not an issue.
My question is "is Databricks supporting something bigger than the 'string' data-type" ? 
Thanks

Hello,
Gemini gave me some answers. I'll investigate from there.

Thanks

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