Hello @Dharmesh Rathod
Thanks for the question and using MS Q&A platform.
You can execute Hive queries in Synapse Spark by connecting to an external Hive Metastore. To do this, you need to set up a linked service to the external Hive Metastore in your Synapse workspace and configure your Spark pool to use the linked external Hive Metastore. You can then use the HiveContext in your Spark code to execute Hive queries.
For more details, refer to Use external Hive Metastore for Synapse Spark Pool
Hope this helps. Do let us know if you any further queries.
Please don’t forget to Accept Answer
wherever the information provided helps you, this can be beneficial to other community members.