[MCOL-1288] Perform NULL check in underlying C API to avoid Python None check Created: 2018-03-21  Updated: 2021-01-17  Resolved: 2021-01-17

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: None
Fix Version/s: N/A

Type: New Feature Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Todd Stoffel (Inactive)
Resolution: Won't Do Votes: 0
Labels: None


 Description   

A user has reported that he does not like having to use the following pattern a lot with the Python bulk load API:

if val is None:
bulk.setNull()
else:
bulk.setColumn()

He suggested that it might be worthwhile to make it so that the user only has to execute bulk.setColumn() with the Python API, and any required NULL/None checks get moved to the underlying C API.



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2018-03-21 ]

jens.rowekamp is it possible to do this with the Python wrapper?

Comment by Jens Röwekamp (Inactive) [ 2018-03-22 ]

should be through typemaps.

Comment by Andrew Hutchings (Inactive) [ 2018-03-22 ]

OK, set as a feature request to review. Making that change in the 1.1 would break API.

Generated at Thu Feb 08 02:27:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.