Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Luuk_J
Frequent Visitor

Spark connector import error in notebook

Hi all,

 

Just getting started with the Fabric notebooks and trying to load a view from the Lakehouse SQL endpoint as per: https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector

 

However, during the required imports I get the following error:

Luuk_J_1-1723812875314.png

 

The first line succeeds, second line throws the error. I'm (as per documentation) using Spark (Scala) in that cell.
Any suggestions how to fix this?

Thanks in advance!

Luuk

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Luuk_J 

 

You are not importing the correct module. The correct one is as below.

vjingzhanmsft_0-1724032119742.png

Important

Run these import statements at the beginning of your notebook or before you start using the connector:

import com.microsoft.spark.fabric.tds.implicits.read.FabricSparkTDSImplicits._

import org.apache.spark.sql.functions._

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Luuk_J 

 

You are not importing the correct module. The correct one is as below.

vjingzhanmsft_0-1724032119742.png

Important

Run these import statements at the beginning of your notebook or before you start using the connector:

import com.microsoft.spark.fabric.tds.implicits.read.FabricSparkTDSImplicits._

import org.apache.spark.sql.functions._

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Ah my bad, must have mixed up several things in the process. Thanks for the quick reply, the import is working correctly now!

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors