Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort and finalize staged data fails with pre-epoch dates #1781

Open
Tracked by #1679
vasil-pashov opened this issue Aug 21, 2024 · 0 comments · May be fixed by #1799
Open
Tracked by #1679

Sort and finalize staged data fails with pre-epoch dates #1781

vasil-pashov opened this issue Aug 21, 2024 · 0 comments · May be fixed by #1799
Assignees
Labels
bug Something isn't working

Comments

@vasil-pashov
Copy link
Collaborator

Describe the bug

When the index in any of the staged segments contains pre-epoch dates calling sort_and_finalize_staged_data fails.

Steps/Code to Reproduce

import pandas as pd
import numpy as np
import arcticdb as adb

ac = adb.Arctic("lmdb://test")
lib = ac.get_library("test", create_if_missing=True)
df = pd.DataFrame({"b": [0]}, index=pd.DatetimeIndex([pd.Timestamp(1969, 12, 31, 12, 59, 59)]))
lib.write(symbol, df, staged=True)
lib.sort_and_finalize_staged_data(symbol)

Throws:

InternalException: E_INVALID_ARGUMENT timestamp decreasing, current val=0, candidate=-39601000000000

Expected Results

Work just as append and write store pre-epoch dates.

OS, Python Version and ArcticDB Version

Python: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
OS: Windows-10-10.0.22631-SP0
ArcticDB: master

Backend storage used

No response

Additional Context

No response

@vasil-pashov vasil-pashov added the bug Something isn't working label Aug 21, 2024
@vasil-pashov vasil-pashov self-assigned this Aug 21, 2024
@vasil-pashov vasil-pashov linked a pull request Aug 30, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant