Skip to content

Support datetime dimenions column range restrictions#233

Merged
eddelbuettel merged 4 commits intomasterfrom
de/dimension_datetime
Apr 28, 2021
Merged

Support datetime dimenions column range restrictions#233
eddelbuettel merged 4 commits intomasterfrom
de/dimension_datetime

Conversation

@eddelbuettel
Copy link
Copy Markdown
Contributor

When DATETIME_* data is stored, we generally follow the NumPy format and transform values. An example is DATETIME_YEAR, the current year is store as 51 derivided as the current year's value minus the year of the epoch. However, R users would submit selection ranges via pairs of <minvalue, maxvalue> for the range as R objects, using e.g. a Date object such as as.Date(2010-01-01) to express, say, the year 2010. We have to map these values to the NumPy representation to properly set up constraints.

An existing unit test has been expanded, for each written column a subset is then requested and checked.

@eddelbuettel eddelbuettel force-pushed the de/dimension_datetime branch from 859788f to a1fe673 Compare April 28, 2021 14:21
@eddelbuettel eddelbuettel merged commit 5da9eab into master Apr 28, 2021
@eddelbuettel eddelbuettel deleted the de/dimension_datetime branch April 28, 2021 14:34
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

Successfully merging this pull request may close these issues.

2 participants