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
New Contributor III

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

 

 

 

2 REPLIES 2

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
New Contributor III

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

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