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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Pyspark Parametrization not working correctly

Hello,

According to the Fabric Runtime 1.2 release notes for Microsoft Fabric Runtime 1.2 in Fabric - Microsoft Fabric | Microsoft Learn, the parameterization of Spark SQL should be supported. However, when I attempt to run a simple SQL query as shown below, I encounter a syntax error.

O_Q_0-1716461125730.png

I get the following syntax error 

O_Q_1-1716461177329.png

Could you please help me identify the issue and suggest a solution?

Thank you.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 
Thanks for bringing this to our notice. The internal team has confirmed this as a bug. I have created an ICM for the same. I will let you know once this gets resolved.

Thanks

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hey @Anonymous  ,
Thanks for replying.
Your solution does indeed work , however what I am trying to do is to convert from what you suggested to the format suggested here [SPARK-41271] Parameterized SQL - ASF JIRA (apache.org).
and I don't understand why it is not supported even though it says it is in the fabric runtime relase notes 

Anonymous
Not applicable

Hi @Anonymous 
Thanks for bringing this to our notice. The internal team has confirmed this as a bug. I have created an ICM for the same. I will let you know once this gets resolved.

Thanks

Anonymous
Not applicable

Hey @Anonymous 
Thank you for raising this , can you link me the ICM ticket please.

Thanks

Anonymous
Not applicable

Hi @Anonymous 
Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.

Anonymous
Not applicable

Hi @Anonymous 
Thanks for using Fabric Community.
You can try the below code:

param1 = "abcde"
spark.sql(f"CREATE TABLE {param1}").show()

vnikhilanmsft_1-1716541484163.png


Hope this helps. Please let me know if you have any further questions.

 

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.