<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Lakebridge code conversion from oracle to databricks sql in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140873#M51555</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I’m working on migrating several Oracle views to SparkSQL using the Databricks Labs Lakehouse Bridge tool.&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I’m facing issues while converting the code .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For oracle views and materialized views .&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Problems I’m encountering:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The converted SQL sometimes contains syntax or functions not supported in SparkSQL.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any guidance or resources would be appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Rahul&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 14:03:08 GMT</pubDate>
    <dc:creator>rahult1407</dc:creator>
    <dc:date>2025-12-02T14:03:08Z</dc:date>
    <item>
      <title>Lakebridge code conversion from oracle to databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140873#M51555</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I’m working on migrating several Oracle views to SparkSQL using the Databricks Labs Lakehouse Bridge tool.&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I’m facing issues while converting the code .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For oracle views and materialized views .&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Problems I’m encountering:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The converted SQL sometimes contains syntax or functions not supported in SparkSQL.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any guidance or resources would be appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Rahul&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 14:03:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140873#M51555</guid>
      <dc:creator>rahult1407</dc:creator>
      <dc:date>2025-12-02T14:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lakebridge code conversion from oracle to databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140881#M51558</link>
      <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/199520"&gt;@rahult1407&lt;/a&gt;&amp;nbsp;, I did some digging and would like to offer some helpful hints to guide you through your conversion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Databricks Lakebridge (formerly Lakehouse Bridge) is a powerful migration tool, but Oracle to SparkSQL conversion—especially for views and materialized views—presents several challenges that require both automated assistance and manual intervention.&lt;/P&gt;
&lt;H2&gt;Common Conversion Challenges&lt;/H2&gt;
&lt;P&gt;Automated conversion tools like Lakebridge typically achieve around 75% conversion rates, with the remaining 25% requiring manual rework. Oracle and Databricks SQL procedure/view conversion is notoriously difficult due to fundamental differences in SQL dialects, built-in functions, data types, and architectural approaches.&lt;/P&gt;
&lt;H2&gt;Key Function and Syntax Differences&lt;/H2&gt;
&lt;P&gt;Here are critical Oracle to SparkSQL mappings you'll need to address:&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;NVL/ISNULL&lt;/STRONG&gt;&amp;nbsp;→ coalesce()&lt;BR /&gt;- &lt;STRONG&gt;SYSDATE&lt;/STRONG&gt;&amp;nbsp;→ current_timestamp()&lt;BR /&gt;- &lt;STRONG&gt;ROWNUM&lt;/STRONG&gt;&amp;nbsp;→ row_number() window function&lt;BR /&gt;- &lt;STRONG&gt;INSTR&lt;/STRONG&gt;&amp;nbsp;(4-parameter version) → substring_index() or modified locate() functions&lt;BR /&gt;- &lt;STRONG&gt;TO_DATE&lt;/STRONG&gt;&amp;nbsp;→ unix_timestamp() or to_timestamp() with format strings&lt;BR /&gt;- &lt;STRONG&gt;Oracle NUMBER type&lt;/STRONG&gt;&amp;nbsp;→ DECIMAL with max precision of 38, or DOUBLE for higher precision&lt;/P&gt;
&lt;H2&gt;Handling Views and Materialized Views&lt;/H2&gt;
&lt;P&gt;For &lt;STRONG&gt;regular views&lt;/STRONG&gt;, the conversion process involves translating the view definition SQL from Oracle syntax to SparkSQL syntax, then recreating them in Databricks. For &lt;STRONG&gt;materialized views&lt;/STRONG&gt;, Databricks supports them natively through Lakeflow pipelines that automatically manage refresh operations.&lt;/P&gt;
&lt;H2&gt;Recommended Approach&lt;/H2&gt;
&lt;P&gt;Rather than relying solely on automated conversion, adopt this hybrid strategy:&lt;/P&gt;
&lt;P&gt;1. &lt;STRONG&gt;Categorize your views&lt;/STRONG&gt;&amp;nbsp;- ETL-focused views should convert to Delta Live Tables, while reporting views can become parameterized queries or dashboards&lt;BR /&gt;2. &lt;STRONG&gt;Manual conversion for complex logic&lt;/STRONG&gt;&amp;nbsp;- Most successful migrations involve significant manual work, especially for procedural logic&lt;BR /&gt;3. &lt;STRONG&gt;Test with representative data&lt;/STRONG&gt;&amp;nbsp;- Validate both syntax conversion and semantic equivalence&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;At the end of the day these migrations are involved and nuanced.&amp;nbsp; Lakebridge is a great tool that will get you through 75% of what needs to be converted, the rest will involved manual intervention to address the edge cases.&lt;/P&gt;
&lt;P&gt;Hope this helps, Louis.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 14:47:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140881#M51558</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-12-02T14:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lakebridge code conversion from oracle to databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140889#M51564</link>
      <description>&lt;P&gt;Not a very good answer, but I was facing the same issues with the tool. I need to give it a second chance soon.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 15:08:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140889#M51564</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2025-12-02T15:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lakebridge code conversion from oracle to databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140893#M51565</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/34815"&gt;@Louis_Frolio&lt;/a&gt;&amp;nbsp;- will there be similar guidelines for other 'source' code too such as T-SQL, Teradata. Any such comprhensive docs on Laeebridge to cover per source.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 15:29:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakebridge-code-conversion-from-oracle-to-databricks-sql/m-p/140893#M51565</guid>
      <dc:creator>Raman_Unifeye</dc:creator>
      <dc:date>2025-12-02T15:29:41Z</dc:date>
    </item>
  </channel>
</rss>

