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

Fix SamplePath for constant data #206

Open
dlindhol opened this issue Mar 11, 2021 · 0 comments
Open

Fix SamplePath for constant data #206

dlindhol opened this issue Mar 11, 2021 · 0 comments

Comments

@dlindhol
Copy link
Member

We use SamplePath (List[SamplePosition]) to identify the location of a data value within a Sample. (Nested Functions add to the list.)

We've been able to support the idea of a ConstantFunction that allows us to have a Dataset with a single constant data value in a 0-arity Sample (empty list of domain values). DataType.getPath currently returns an empty SamplePath for a single Scalar and breaks with a MatchError for Tuple. These should be able to point to the appropriate RangePosition of the 0-arity Sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant