Forum Discussion

SukiB's avatar
SukiB
Regular Visitor
1 year ago
Solved

Trouble querying data in ADLS Gen2 from Fabric using a shortcut

Hi.  Hoping someone knows how to tackle this one - stuck on it for a couple of days now 😞 When I run the following code:   df = spark.read.format("parquet").load("Files/landing-zone/yellow_trip...
  • SukiB's avatar
    1 year ago

    Quick update on this: -

    I raised a support ticket with Microsoft Fabric Support, and they’ve conducted an in-depth investigation. They were able to replicate the issue when uploading a single Parquet file via the shortcut method above. For this test, I used NYC data from yellow_tripdata_2024-01.parquet.

    Interestingly, the issue disappears when multiple files are present in storage or when using other file formats. This confirms that the problem is specific to single Parquet files accessed via shortcuts.

    I've now shared this blog with the team, and they have escalated it as a potential bug. Once a solution is found, they will provide an update here.

    In the meantime, as a workaround for Parquet files, I'm using: -


    df = spark.read.parquet("abfss://container@storage_account.dfs.core.windows.net/*")

    display(df)

    Hope this helps anyone facing a similar issue!

    SukiB