-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add Date in days conversion support #168
Conversation
bb84584
to
8faa4b8
Compare
pymapd/_pandas_loaders.py
Outdated
@@ -131,7 +132,8 @@ def build_input_columnar(df, preserve_index=True, | |||
|
|||
if mapd_type in {'TIME', 'TIMESTAMP', 'DATE', 'BOOL'}: | |||
# requires a cast to integer | |||
data = thrift_cast(data, mapd_type) | |||
print(col_types[colindex][1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't need a print() statement here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to remove it! Thanks!
@wamsiv Since this issue started with OmniSci 4.4, why wouldn't we expect this functionality pass on any build? |
d547dbe
to
15f921b
Compare
We started exposing encoding to end points recently through a commit which is not available in this build. Without that there is not no way of knowing days/seconds type. |
I guess what I'm asking is if the tests require a certain version of OmniSci, do we need to add some sort of OmniSci version logic into pymapd either in |
d2c4fc3
to
6f785d4
Compare
Looks like latest build container is failing at the start. And we are not breaking any compatibility, here I have added: https://github.com/omnisci/pymapd/pull/168/files#diff-51b57568ea5bfd539fbcf96d15ad4b18R86 another condition for date encoding in days. The legacy dates will still pass through |
@randyzwitch Ok I think I understand what you are confused about here. So, now the new columns which are getting created have encoding in days. If you try to use load_table here on new dates it would expect the input in days, which my logic does here but problem is that we were not exposing the encoding of new DATE type before. heavyai/heavydb@99adcec now exposes the end point, which is not available in |
Ok, so it's 4.4.2 that unintentionally broke the compatibility by not exposing the endpoint? If so, can't do anything about that now. This is failing because the newest version for Docker is still 4.4.2. @andrewseidl, if you could ping us when 4.5 is available, then we can merge this PR and get a new version of pymapd out the door |
76a6f85
to
6f785d4
Compare
6f785d4
to
10cdacc
Compare
|
LGTM, passes on my local machine. Needed to run |
@andrewseidl Need to tag docker core build with latest commits in it, to enable the commented tests, they are failing on current build:
v4.5.0dev-20190104-5aee66d0e5
fixes #167