Forum Discussion

amaaiia's avatar
amaaiia
Skilled Sharer
2 years ago
Solved

Write data into a shortcut to ADLSg2

Is it possible to write data into a table stored in ADLSg2 referenced by shortcut? Or is it just for read-only operations?

  • Hi amaaiia you are able to write to Delta tables stored in ADLSGen2 using a shortcut in a Fabric Lakehouse.  In the attached image, I have a shortcut to an ADLSGen2 account with a Delta table.  I can then read and write data to it.

     

     

    You can also write Files too.

     

8 Replies

  • AndyDDC's avatar
    AndyDDC
    Most Valuable Professional

    Hi amaaiia you are able to write to Delta tables stored in ADLSGen2 using a shortcut in a Fabric Lakehouse.  In the attached image, I have a shortcut to an ADLSGen2 account with a Delta table.  I can then read and write data to it.

     

     

    You can also write Files too.

     

    • amaaiia's avatar
      amaaiia
      Skilled Sharer

      Omg, that's what I tried before and it didn't work. now I've tried it again and it works...fantastic!

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi amaaiia 

    No, shortcuts in Microsoft Fabric for ADLS Gen2 are for read-only operations. You cannot directly write data into a table referenced by a shortcut.

    Here's why:

    • Shortcuts are pointers to existing data locations. They don't create copies of the data.
    • Fabric uses the shortcut to access the original data in ADLS Gen2.

    Hope this helps. Please let me know if you have any further questions.

    • AndyDDC's avatar
      AndyDDC
      Most Valuable Professional

      Anonymous shortcuts are not read only.  Shortcuts also enable you to write back to the shortcut location.  S3 and Google are not supported for write operations via Shortcuts, but ADLSGen2 is supported for write operations.

    • amaaiia's avatar
      amaaiia
      Skilled Sharer

      Sure, I know it's not a copy, I was thinking in the possibility of using shortcut to write directly into ADLSg2.