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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
smoqt
Advocate I
Advocate I

Spark Settings not available for environment

Several Spark notebooks are throwing an error and suggest I set the following configurations.

spark.sql.parquet.datetimeRebaseModeInWrite

spark.sql.parquet.datetimeRebaseModeInRead

 

I can do this from the notebook but would prefer to do it at the environment level.  However, these settings are not available in the Spark Settings dropdown for my environment.  I can (and did) set the following configurations at the environment level but they did not resolve my issue.

 

spark.sql.legacy.parquet.datetimeRebaseModeInWrite

spark.sql.legacy.parquet.datetimeRebaseModeInRead

 

Runtime information:

Runtime 1.3 (Spark 3.5, Delta 3.2)

 

Will these settings be made available soon?

 

smoqt_0-1744924238916.png

 

1 ACCEPTED SOLUTION
v-tsaipranay
Community Support
Community Support

Hi @smoqt ,

Thank you for reaching out to the Microsoft Fabric Community.

 

you’re correct that the properties spark.sql.parquet.datetimeRebaseModeInWrite and spark.sql.parquet.datetimeRebaseModeInRead are not currently available in the Spark Settings dropdown at the environment level in Microsoft Fabric (Runtime 1.3, Spark 3.5). At this time, Fabric environments do not support setting these specific Spark configurations globally via the UI or backend configuration.

 

While the legacy configurations (spark.sql.legacy.parquet.datetimeRebaseModeInWrite and spark.sql.legacy.parquet.datetimeRebaseModeInRead) are available in the environment settings, they do not apply the same behavior in Spark 3.5+. This is due to changes in how Spark handles datetime rebasing starting in Spark 3.x, where the non-legacy keys take precedence for Parquet write/read operations.

I am including image please refer for your understanding:

vtsaipranay_0-1744962333853.png

 

As a result, the only current workaround is to set these properties explicitly within each notebook using spark.conf.set() at the start of your code.

 

We understand the need for setting such properties at the environment level for broader consistency, and we recommend submitting this as a feature request on the Microsoft Fabric Ideas Forum. Feedback there helps guide prioritization for feature enhancements like this.

 

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

 

Thankyou.

View solution in original post

1 REPLY 1
v-tsaipranay
Community Support
Community Support

Hi @smoqt ,

Thank you for reaching out to the Microsoft Fabric Community.

 

you’re correct that the properties spark.sql.parquet.datetimeRebaseModeInWrite and spark.sql.parquet.datetimeRebaseModeInRead are not currently available in the Spark Settings dropdown at the environment level in Microsoft Fabric (Runtime 1.3, Spark 3.5). At this time, Fabric environments do not support setting these specific Spark configurations globally via the UI or backend configuration.

 

While the legacy configurations (spark.sql.legacy.parquet.datetimeRebaseModeInWrite and spark.sql.legacy.parquet.datetimeRebaseModeInRead) are available in the environment settings, they do not apply the same behavior in Spark 3.5+. This is due to changes in how Spark handles datetime rebasing starting in Spark 3.x, where the non-legacy keys take precedence for Parquet write/read operations.

I am including image please refer for your understanding:

vtsaipranay_0-1744962333853.png

 

As a result, the only current workaround is to set these properties explicitly within each notebook using spark.conf.set() at the start of your code.

 

We understand the need for setting such properties at the environment level for broader consistency, and we recommend submitting this as a feature request on the Microsoft Fabric Ideas Forum. Feedback there helps guide prioritization for feature enhancements like this.

 

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

 

Thankyou.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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