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
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
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