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: 

Connect to delta table from mlflow pyfunc serving endpoint

Chibberto
New Contributor II

Hi, I'm creating an mlflow pyfunc serving endpoint and I would like to connect to a delta table to retrieve some information within the pyfunc. Is this possible?

I ask because I don't think that serving endpoint environment has access to spark, and we would have to instantiate a spark session which would have an amount of overhead?

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @ChibbertoYes, connecting to a delta table within the MLflow sync serving endpoint is possible.

However, as you correctly pointed out, the serving endpoint environment cannot access Spark. Therefore, you would need to instantiate a Spark session, which would have an amount of overhead. 

However, you can use the Delta Standalone library, a single-node Java library that can read from and write to Delta tables. This library provides APIs to interact with table metadata in the transaction log, implementing the Delta Transaction Log Protocol to achieve the transactional guarantees of the Delta format.

 

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