Forum Discussion
openrowset compatibility
Hello smpa01,
Thank you for reaching out to the Microsoft Fabric Community Forum.
I have reproduced your scenario in Microsoft Fabric by uploading a .parquet file to the Lakehouse and querying it using the OPENROWSET function via the Lakehouse SQL endpoint.
OPENROWSET now supports Lakehouse files using the OneLake DFS path, provided the query is executed from within Fabric (i.e., through the Lakehouse’s SQL Endpoint).
Example Tested:
SELECT *
FROM OPENROWSET(
BULK ' https://msit-onelake.dfs.fabric.microsoft.com/297d2e15-e2ba-43af-b6c2-572ce32c262f/f4fd0d9a-231f-4e3b-970a-7848479bf0a8/Files/iris.parquet,
FORMAT = 'PARQUET'
) AS t
Output was successfully returned from the Parquet file stored in Lakehouse:
If you're encountering errors, please ensure:
- You're running the query inside the SQL endpoint of the same Lakehouse in Fabric.
- The file path is correct (use Copy Path from the Lakehouse UI).
- You have appropriate permissions in that workspace.
- You're specifying the correct file format (e.g: 'PARQUET', 'CSV', etc.).
Best Regards,
Ganesh singamshetty.
hi v-ssriganesh
Can you please confirm from when onwards Fabric start supporting openrowset with lakehouse parquet file ? is it in GA. It's not yet supported in our workspace.
Running the query within the same lakehouse sql endpoint, provided correct path and file format etc. Not working to query files from sql endpoint.
11:52:56 AM Started executing on line 1
Msg 13832, Level 16, State 2, Line 1
Path 'https://onelake.dfs.fabric.microsoft.com/SynapseMigration/xxx.Lakehouse/Files/test/part-00000-081be3fe-a5c7-4836-beee-6e27ddedfd12-c000.snappy.parquet' has URL suffix which is not allowed.
11:52:57 AM Query execution time: 00:00:00.002 | Time to process and render results: 00:00:01.206 | Total duration: 00:00:01.208