Skip to content

Commit 60f7e0a

Browse files
docs: comments for write null fields (#207)
1 parent 592b6f7 commit 60f7e0a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

influxdb_client_3/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,11 @@ def write(self, record=None, database=None, **kwargs):
388388
"""
389389
Write data to InfluxDB.
390390
391+
Warning: When you write with only one Point or one Dict, and If that Point or Dict
392+
contains fields with None value, those fields will not be written to InfluxDB.
393+
If such fields are later queried explicitly, for example,
394+
"SELECT field_with_value, field_with_null_value FROM my_table" an error will be thrown.
395+
391396
:param record: The data point(s) to write.
392397
:type record: object or list of objects
393398
:param database: The database to write to. If not provided, uses the database provided during initialization.

0 commit comments

Comments
 (0)