mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
19 lines
285 B
Python
19 lines
285 B
Python
import pickle
|
|
|
|
def init():
|
|
pass
|
|
|
|
def destroy():
|
|
pass
|
|
|
|
def start():
|
|
return pickle.dumps([])
|
|
|
|
def finish(buf):
|
|
return None
|
|
|
|
def reduce(datablock, buf):
|
|
(rows, cols) = datablock.shape()
|
|
mins = pickle.loads(buf)
|
|
mins.append(None)
|
|
return pickle.dumps(mins)
|