-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[bugfix] TIMESTAMP not detected as date #5629
[bugfix] TIMESTAMP not detected as date #5629
Conversation
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.
+1
superset/dataframe.py
Outdated
if dtype and dtype.name: | ||
return any([ | ||
dtype.name.startswith(s.lower()) | ||
for s in ['date', 'time'] |
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.
Should we do dtype.name.startswith(s.lower().lstrip('_'))
instead, to catch __time
as a timestamp as well?
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.
oops, realized I was lowering the hard coded strings...
Codecov Report
@@ Coverage Diff @@
## master #5629 +/- ##
==========================================
+ Coverage 63.48% 63.49% +0.01%
==========================================
Files 360 360
Lines 22889 22887 -2
Branches 2547 2548 +1
==========================================
+ Hits 14531 14533 +2
+ Misses 8343 8339 -4
Partials 15 15
Continue to review full report at Codecov.
|
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak (cherry picked from commit 4c2be71)
* [bugfix] TIMESTAMP not detected as date * minor tweak
@vylc @betodealmeida