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

Do not cast empty Pandas blocks to float64 when empty types are enabled #1562

Open
Tracked by #1339
vasil-pashov opened this issue May 9, 2024 · 0 comments
Open
Tracked by #1339
Assignees
Labels
bug Something isn't working

Comments

@vasil-pashov
Copy link
Collaborator

vasil-pashov commented May 9, 2024

Describe the bug

#1561 Completely disables Pandas consolidation. In order to keep the behavior unchanged it has to cast empty blocks to float64. This should not happen with empty types. The dtype of empty column should be object.

Steps/Code to Reproduce

import pandas as pd
import arcticdb
import numpy
ac = arcticdb.Arctic("lmdb://test")
lib = ac.get_library("test_lib", create_if_missing=True)
s = pd.Series()
lib.write("test_sym", s)
assert lib.read("test_sym").data.dtype == np.object

Expected Results

>>> print(lib.read("test_sym").data.dtype == np.object)
True

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: dev

Backend storage used

No response

Additional Context

No response

@vasil-pashov vasil-pashov added the bug Something isn't working label May 9, 2024
@vasil-pashov vasil-pashov self-assigned this May 9, 2024
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

No branches or pull requests

1 participant