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

[bugfix] TIMESTAMP not detected as date #5629

Merged
merged 2 commits into from
Aug 14, 2018

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch added the lyft Related to Lyft label Aug 14, 2018
Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

if dtype and dtype.name:
return any([
dtype.name.startswith(s.lower())
for s in ['date', 'time']
Copy link
Member

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?

Copy link
Member Author

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-io
Copy link

codecov-io commented Aug 14, 2018

Codecov Report

Merging #5629 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
superset/dataframe.py 94.64% <100%> (+0.04%) ⬆️
superset/views/core.py 73.97% <0%> (-0.02%) ⬇️
superset/assets/src/explore/visTypes.jsx 57.14% <0%> (ø) ⬆️
superset/assets/src/visualizations/line_multi.js 0% <0%> (ø) ⬆️
...sets/src/explore/components/DisplayQueryButton.jsx 74.62% <0%> (+0.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a39dfb9...031cb7f. Read the comment docs.

@mistercrunch mistercrunch merged commit 4c2be71 into apache:master Aug 14, 2018
@mistercrunch mistercrunch deleted the fix_timestamp_detection branch August 14, 2018 20:01
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 16, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Aug 17, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Aug 17, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 18, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 18, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 19, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 19, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 20, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 20, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 21, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 21, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Aug 21, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Aug 22, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 22, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 22, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 22, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak

(cherry picked from commit 4c2be71)
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* [bugfix] TIMESTAMP not detected as date

* minor tweak
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels lyft Related to Lyft 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants