erlexec
erlexec copied to clipboard
Extend operation on DocumentArray applies change before validation
trafficstars
from docarray import Document
d = Document(id='Meow')
d.chunks.extend([1, 2, 3])
d.summary()
Expected Behavior Throws an error and keeps the Document intact.
Current Behavior Throws an error but modifies the Document.
Reproduction of the bug in colab environment: https://colab.research.google.com/drive/1n0olEkZ9iKSIvtq1kXbLv5hv59MsSv1L?usp=sharing