Skip to content

Commit c5ecb03

Browse files
committed
Make recursive normalizer default to be false in library option
1 parent 34fc9ee commit c5ecb03

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

python/arcticdb/options.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class LibraryOptions:
3333
See `__init__` for details.
3434
columns_per_segment: int
3535
See `__init__` for details.
36+
recursive_normalizers: bool
37+
See `__init__` for details.
3638
"""
3739

3840
def __init__(
@@ -43,7 +45,7 @@ def __init__(
4345
rows_per_segment: int = 100_000,
4446
columns_per_segment: int = 127,
4547
encoding_version: Optional[EncodingVersion] = None,
46-
recursive_normalizers: bool = True,
48+
recursive_normalizers: bool = False,
4749
):
4850
"""
4951
Parameters
@@ -126,7 +128,7 @@ def __init__(
126128
The encoding version to use when writing data to storage.
127129
v2 is faster, but still experimental, so use with caution.
128130
129-
recursive_normalizers: bool, default True
131+
recursive_normalizers: bool, default False
130132
Whether to recursively normalize nested data structures when writing sequence-like or dict-like data.
131133
The data structure can be nested or a mix of lists and dictionaries.
132134
Note: If the leaf nodes cannot be natively normalized and must be written using write_pickle, those leaf nodes

python/arcticdb/version_store/library.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,10 @@ def write(
995995
table.
996996
recursive_normalizers: bool, default None
997997
Whether to recursively normalize nested data structures when writing sequence-like or dict-like data.
998-
If None, falls back to the corresponding setting in the library configuration.
998+
If None, falls back to the corresponding setting in the library configuration. For libraries created with < v6.4.0,
999+
the default library configuration is True, otherwise it is False.
1000+
The library configuration can be modified via Arctic.modify_library_option(). Please refer to
1001+
https://docs.arcticdb.io/latest/api/arctic/#arcticdb.Arctic.modify_library_option for more details.
9991002
The data structure can be nested or a mix of lists and dictionaries.
10001003
10011004
Returns

0 commit comments

Comments
 (0)