Skip to content

[BUG] Error when loading parted table #17

Description

@ft-lakr

Description

I am trying to load a parted table from disk but get a RayforceUserError stating that there is no partition directories.

Sample Data

--

Version

2.2.0

Code Snippet

dates1 = [datetime(2001, 1, 1, 1, 1, 1), datetime(2001, 1, 1, 1, 1, 2), datetime(2001, 1, 1, 1, 1, 3)]
dates2 = [datetime(2001, 1, 2, 1, 1, 1), datetime(2001, 1, 2, 1, 1, 2), datetime(2001, 1, 2, 1, 1, 3)]
prices1 = [1, 2, 3]
prices2 = [4, 5, 6]
t1 = Table.from_dict({'timestamp': Vector(dates1, ray_type=Timestamp),
                      'price': Vector(prices1, ray_type=I32)})
t2 = Table.from_dict({'timestamp': Vector(dates2, ray_type=Timestamp),
                      'price': Vector(prices2, ray_type=I32)})
t1.set_splayed('./db/2001-01-01/prices/')
t2.set_splayed('./db/2001-01-02/prices/')

# Raises Error
t = Table.from_parted('./db/', 'prices')

Output

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions