You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
## Release History
2
2
3
3
### 4.2.0-beta.1 (Unreleased)
4
+
#### Configuration Changes
5
+
* Changed the default value of `spark.cosmos.read.inferSchema.forceNullableProperties` from `false` to `true` based on user feedback, see [PR](https://github.com/Azure/azure-sdk-for-java/pull/22049).
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos-spark_3-1_2-12/docs/configuration-reference.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ When doing read operations, users can specify a custom schema or allow the conne
48
48
|`spark.cosmos.read.inferSchema.samplingSize`|`1000`| Sampling size to use when inferring schema and not using a query. |
49
49
|`spark.cosmos.read.inferSchema.includeSystemProperties`|`false`| When schema inference is enabled, whether the resulting schema will include all [Cosmos DB system properties](https://docs.microsoft.com/azure/cosmos-db/account-databases-containers-items#properties-of-an-item). |
50
50
|`spark.cosmos.read.inferSchema.includeTimestamp`|`false`| When schema inference is enabled, whether the resulting schema will include the document Timestamp (`_ts`). Not required if `spark.cosmos.read.inferSchema.includeSystemProperties` is enabled, as it will already include all system properties. |
51
-
|`spark.cosmos.read.inferSchema.forceNullableProperties`|`false`| When schema inference is enabled, whether the resulting schema will make all columns nullable. By default whether inferred columns are treated as nullable or not will depend on whether any record in the sample set has null-values within a column. If set to `true` all columns will be treated as nullable even if all rows within the sample set have non-nullvalues.|
51
+
|`spark.cosmos.read.inferSchema.forceNullableProperties`|`true`| When schema inference is enabled, whether the resulting schema will make all columns nullable. By default, all columns (except cosmos system properties) will be treated as nullable even if all rows within the sample set have non-null values. When disabled, the inferred columns are treated as nullable or not depending on whether any record in the sample set has null-values within a column. |
0 commit comments