This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch try_fix_python
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/try_fix_python by this push:
new 3460caae Update tsfile_pywrapper.pyx
3460caae is described below
commit 3460caaec1413b56d9799d609fd2e0e1f1acc423
Author: Haonan <[email protected]>
AuthorDate: Mon Aug 5 00:53:23 2024 +0800
Update tsfile_pywrapper.pyx
---
python/tsfile/tsfile_pywrapper.pyx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/python/tsfile/tsfile_pywrapper.pyx
b/python/tsfile/tsfile_pywrapper.pyx
index 5851751d..0530435b 100644
--- a/python/tsfile/tsfile_pywrapper.pyx
+++ b/python/tsfile/tsfile_pywrapper.pyx
@@ -51,8 +51,8 @@ cdef class tsfile_reader:
def __init__(self, pathname, table_name, columns, start_time=None,
end_time=None, batch_size=None):
- self.ret = None
- self.reader = None
+ self.ret = NULL
+ self.reader = NULL
self.open_reader(pathname)
self.query_data_ret(table_name, columns, start_time, end_time)
@@ -274,8 +274,8 @@ cdef class tsfile_writer:
cdef tsf.TsFileRowData row_data
def __init__(self, pathname):
- self.row_data = None
- self.writer = None
+ self.row_data = NULL
+ self.writer = NULL
self.open_writer(pathname)