From 3689dad885bb75c82387c085b3ad1b851f7e9b95 Mon Sep 17 00:00:00 2001 From: lucycjisc Date: Tue, 10 Dec 2024 13:00:11 +0000 Subject: [PATCH] Changed allow_nulls defaults to True --- mario/data_extractor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mario/data_extractor.py b/mario/data_extractor.py index 01916b6..2c5d7a5 100644 --- a/mario/data_extractor.py +++ b/mario/data_extractor.py @@ -197,7 +197,7 @@ def __init__(self, super().__init__(Configuration(), dataset_specification, metadata) self.configuration = configuration - def validate_data(self, allow_nulls=False): + def validate_data(self, allow_nulls=True): from mario.validation import HyperValidator validator = HyperValidator( dataset_specification=self.dataset_specification, @@ -300,7 +300,7 @@ def stream_sql_to_hyper(self, table: str = 'Extract', schema: str = 'Extract', validate: bool = False, - allow_nulls: bool = False, + allow_nulls: bool = True, minimise: bool = False, chunk_size: int = 100000): """ @@ -328,7 +328,7 @@ def stream_sql_to_hyper(self, def stream_sql_to_csv(self, file_path, validate: bool = False, - allow_nulls: bool = False, + allow_nulls: bool = True, chunk_size: int = 100000, compress_using_gzip: bool = False, minimise: bool = False