cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to read Databricks UniForm format tables present in ADLS

Demudu
New Contributor

We have Databricks UniForm format (iceberg) tables are present in azure data lake storage (ADLS) which has already integrated with Databricks unity catalog. How to read Uniform format tables using Databricks as a query engine?

2 REPLIES 2

Alberto_Umana
Databricks Employee
Databricks Employee

fmadeiro
Visitor
  1. Query Using Unity Catalog:

    • SQL:
      sql
      Copiar cรณdigo
      SELECT * FROM catalog_name.schema_name.table_name;
    • PySpark:
      python
      Copiar cรณdigo
      df = spark.sql("SELECT * FROM catalog_name.schema_name.table_name") df.display()
  2. Direct Access by Path: If not using Unity Catalog:

    python
    Copiar cรณdigo
    iceberg_table_path = "abfss://<container>@<storage_account>.dfs.core.windows.net/<path_to_table>" df = spark.read.format("iceberg").load(iceberg_table_path) df.display()
  3. Optimize Performance:

    • Query by partitions:
      sql
      Copiar cรณdigo
      SELECT * FROM catalog_name.schema_name.table_name WHERE partition_column = 'value';
    • Cache data:
      python
      Copiar cรณdigo
      df.cache()
  4. Optional Features:

    • Time Travel:
      sql
      Copiar cรณdigo
      SELECT * FROM catalog_name.schema_name.table_name VERSION AS OF 123456;

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