chtypes 2.0.0.dev13__py3-none-any.whl → 2.0.0.dev14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
chtypes/_decode.py CHANGED
@@ -322,6 +322,9 @@ def _value(obj: dict[str, Any], where: str) -> Value:
322
322
  source=source,
323
323
  is_stored=Source.is_stored(source),
324
324
  value=_opt_b64(obj, "value_b64", where),
325
+ null_input=_bool(obj, "null_input", where),
326
+ poison=_bool(obj, "poison", where),
327
+ dup_dropped=_bool(obj, "dup_dropped", where),
325
328
  )
326
329
 
327
330
 
chtypes/results.py CHANGED
@@ -73,7 +73,20 @@ class Value:
73
73
  bytes of a scalar String or FixedString leaf (from `value_b64`), None where
74
74
  the document carries none. `null`: the library's verdict, poison included.
75
75
  `source`: the `value_src` spelling (from `src`); `Source` lists them.
76
- `is_stored`: the description's own fact for `source`.
76
+ `is_stored`: the description's own fact for `source`. `null_input`: whether
77
+ the input field was the format's NULL literal (a JSON null, a TSV `\\N`),
78
+ from `null_input`, False where the document carries none; a fact about the
79
+ input, where `null` is one about the stored value, so the two differ where
80
+ a NULL literal is read into a column that is not Nullable. `poison`: the
81
+ stored value is one the server cannot read back (the batch is then
82
+ accepted_poisoned and exports nothing), from `poison`; `dup_dropped`: the
83
+ reader dropped a duplicate key for this column, from `dup_dropped` (at default
84
+ settings a repeated top-level JSONEachRow key that arrives after every column
85
+ has been read is skipped: the first value is stored, this is True, and a
86
+ `duplicate_key_dropped` transform is reported; a repeat while a column is
87
+ still unread is refused with 117; a repeated key inside a Map value keeps
88
+ both keys). Each is
89
+ False where the document carries none.
77
90
  """
78
91
 
79
92
  column: bytes
@@ -82,6 +95,9 @@ class Value:
82
95
  source: str
83
96
  is_stored: bool
84
97
  value: bytes | None = None
98
+ null_input: bool = False
99
+ poison: bool = False
100
+ dup_dropped: bool = False
85
101
 
86
102
 
87
103
  @dataclass(frozen=True, slots=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: chtypes
3
- Version: 2.0.0.dev13
3
+ Version: 2.0.0.dev14
4
4
  Summary: Python binding for the chtypes artifacts: ClickHouse's own type system, per version, behind the frozen chs_* C ABI
5
5
  Project-URL: Homepage, https://github.com/wave-rf/chtypes
6
6
  Project-URL: Repository, https://github.com/wave-rf/chtypes
@@ -2,7 +2,7 @@ chtypes/__init__.py,sha256=8bwCCMfg7k233x9tK6Eg8lITeC8EDwSS5M8VCkxbuPY,6736
2
2
  chtypes/__main__.py,sha256=6qal_3mJBVfNc9LNHsSB0d9Sfurxix6QbNWG5TEa4L4,19392
3
3
  chtypes/_advisory.py,sha256=wTRNdwqLiOGsFKZQ7CYZHsfIhDrKc_arpaxEYZCUxV4,1212
4
4
  chtypes/_codes.py,sha256=mRhjP-7fOU6j15le7r1jHwLJkiClMIIIEtfOkriR7uE,1301
5
- chtypes/_decode.py,sha256=uA3o_aVM2bRzHqDZ5v7MAefv7d5HTEZMA0Tic_rIpkE,25589
5
+ chtypes/_decode.py,sha256=AjvvbpamNgCMNo4ITqzCS9ZdZkLrB0dB12foRT1hBEg,25739
6
6
  chtypes/_ed25519.py,sha256=uwaAKWvgoc936e1ZfgLrtR47W87WWCL541kFaqBXrB0,4141
7
7
  chtypes/_guard.py,sha256=kVgvxRWu7H-eba3hTqPBmpqjxOCWdQGwiFAHvSnl1OU,1996
8
8
  chtypes/_input.py,sha256=ZAUEs3r26_CsFiIvaXV9P-F_C9jlRRzMNKgG--G4HnQ,15157
@@ -11,7 +11,7 @@ chtypes/errors.py,sha256=-sCgdySXZn5HRL8Vkwbj9gSvhj0nvCCjwt3mFn6gKIc,10511
11
11
  chtypes/library.py,sha256=MYlk7ksWiq3OP2nJ4YoqRhP2rqLc_xdRktdNQAnwjm0,22290
12
12
  chtypes/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  chtypes/registry.py,sha256=CQHnHr9T-2LyqRsYl5wdWKIVWCOiX9Vx4BLcZL2yCB0,23702
14
- chtypes/results.py,sha256=1HUdvhrjeEl9Fm1GOJUXVREtc7HN31s2yrQbm5_ZeKQ,15397
14
+ chtypes/results.py,sha256=mgW8rnEPvErYzI-OtDTYFho3QF6F-qMc819nRnU9ep0,16430
15
15
  chtypes/_abi2/__init__.py,sha256=d3i7_iUDMFT1jg49vRQz1SMH6oseYZHUR0oPt6aSTiY,1042
16
16
  chtypes/_abi2/_decls.py,sha256=d4-MzKoGNrSb1yFsiR9W4u3IOgKoGZ0pLVZS5SqQ8Hs,39355
17
17
  chtypes/_abi2/_errmap.py,sha256=WbuydXg6a75orLSleWZL3eKsXQR3MtQ9YZpLC09qVhU,2886
@@ -37,8 +37,8 @@ chtypes/_ocifetch/_resolve.py,sha256=Qv8xFUdOR-Kb_JqmUeDiQ4_Xv2ETuNFpmoDckMp7eV8
37
37
  chtypes/_ocifetch/_retired.py,sha256=mqnI9RA7UK0A5RthCeLlBeVAu5SHbtwKFwxsSZk5e6A,7018
38
38
  chtypes/_ocifetch/_revocation.py,sha256=DdKRjFp1eFAxVD7DZHK1bj3_sWVLlaEkVEVx6JyV2Zs,23710
39
39
  chtypes/_ocifetch/_unpack.py,sha256=Cn4-up63KL63L8pnkS5zwJ6VbbHPSigpCnmOdcHJ4RI,5609
40
- chtypes-2.0.0.dev13.dist-info/METADATA,sha256=W3xyv6dfQ9wI53cfWtQWioHnctgRuShzOSDZC5H3Jv4,11365
41
- chtypes-2.0.0.dev13.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
42
- chtypes-2.0.0.dev13.dist-info/entry_points.txt,sha256=TdNcluWBR0VOt5mVFROsp-NiVPAdR3EHo0UsHlMC0r0,50
43
- chtypes-2.0.0.dev13.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
44
- chtypes-2.0.0.dev13.dist-info/RECORD,,
40
+ chtypes-2.0.0.dev14.dist-info/METADATA,sha256=MUhRBmxh8BGm0bVrFYYvMQLTBtS56x_cHV0_WVwXx_M,11365
41
+ chtypes-2.0.0.dev14.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
42
+ chtypes-2.0.0.dev14.dist-info/entry_points.txt,sha256=TdNcluWBR0VOt5mVFROsp-NiVPAdR3EHo0UsHlMC0r0,50
43
+ chtypes-2.0.0.dev14.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
44
+ chtypes-2.0.0.dev14.dist-info/RECORD,,