Forum Discussion

n_campbell's avatar
n_campbell
Regular Visitor
11 months ago
Solved

JDBC driver does not return stored procedure or function metadata from Lakehouse end point

A lakehouse supports the definition of stored procedures and user defined scalar/tabular functions. A connection is established using the SQL Server JDBC driver to the end point. Neither Databa...
  • Vinodh247's avatar
    11 months ago

    A fabric dwh is designed to behave like a full-fledged SQL db with full metadata support. That is why calls like DatabaseMetadata.getProcedures or getFunctions return metadata properly. A Lakehouse SQL endpoint, while it supports the definition and execution of scalar/tabular functions and stored procedures, does not currently expose the metadata through the JDBC driver. This is not clearly documented, but it is consistent with the current state of the Lakehouse endpoint, which is optimized for querying Delta tables and less for providing metadata introspection.

     

    It appears to be either a limitation of the Lakehouse JDBC metadata support or an incomplete implementation. There is no official public documentation stating this explicitly, but Microsoft Fabric’s engineering notes indicate that metadata enumeration is fully implemented for Warehouses but partially implemented for Lakehouses.

     

    Possible workarounds:

    1. Use Fabric Warehouse if you need metadata discovery at runtime.
    2. Query INFORMATION_SCHEMA.ROUTINES or INFORMATION_SCHEMA.PARAMETERS tables directly if they are accessible in the Lakehouse endpoint for your use case.

    Please 'Kudos' and 'Accept as Solution' if this answered your query.