Databricks Libaries

Rohit Kulkarni 731 Reputation points
2022-09-29T14:05:37.61+00:00

Hello Team,

I am trying to use the below libraries in data bricks .But they are not supporting.

import com.microsoft.spark.sqlanalytics
from com.microsoft.spark.sqlanalytics.Constants import Constants

Please advise the correct Libraries name

Regards
Rohit

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,737 Reputation points Microsoft Employee Moderator
    2022-09-30T23:30:46.39+00:00

    Hello @Rohit Kulkarni ,

    Thanks for the question and using MS Q&A platform.

    Looks like you are trying to import the above-mentioned packages in Azure Databricks Runtime for Apache Spark, but seems like they are only available in Azure Synapse Runtime for Apache Spark and not in Databricks Apache Spark.

    I tried them in Azure Synapse Spark, and they are working fine without issues, but in Databricks Runtime Apache Spark I noticed they aren't available.

    246626-image.png

    Here is the doc related to Synapse Spark libraries - https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-32-runtime

    Not sure if you have found any documentation which states they are supported/available in Databricks Runtime Spark? If yes, could you please share the document that you are following?

    Hope this info helps.

    Thank you

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.