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

Revert "Allow bigint to be used as time column in Presto" #7670

Closed
wants to merge 150 commits into from

Conversation

john-bodley
Copy link
Member

@john-bodley john-bodley commented Jun 7, 2019

Per #7218 (comment) including a BIGINT column type as a time column in Presto is problematic as it could represent either a Unix time in seconds or milliseconds.

The current correct way to handle Unix time columns is to set the python_date_format as either epoch or epoch_ms (depending on the encoding) which results in queries comprising the correct fidelity:

SELECT COUNT(*) AS "count"
FROM "superset"."logs"
WHERE "dttm" >= 1553644800
  AND "dttm" <= 1554249600
ORDER BY "count" DESC
LIMIT 10000;

Note #7656 plans to auto-detect the encoding of temporal columns.

to: @betodealmeida @mistercrunch

michellethomas and others added 30 commits April 8, 2019 15:08
* Fix race condition when fetching results in SQL Lab

* Fix lint

(cherry picked from commit ca6a73b)
in some cases, people want a time filter only on filter box, without
specifying dimensions (filters), this allows that

(cherry picked from commit e39b169)
* Fix logo / branding files

SVG was busted in the branding folder. Files were partly corrupt.

This takes back the original logo, and offers a with-Apache and
without-Apache option. SVG renders nicely. The pngs are also bigger.

* add ASF license
* Remove ASF license from github templates (PR and issues)

It shows as people open issues and PRs and it's confusing...

* add to rat-excludes
…6964)

* direct display for pre-selected tab

* update parents

* add AnchorLink component

* add unit tests
* [SQL Lab] fix table metadata loading spinner

The loading spinner used to be close to the new table name that was just
added, and recently flickers and disappears early.

This puts the spinner where it's expected to be.

* Use class

* Addressing comments

* adapt CSS

* add missing license
* chore: add bot config files and update issue templates

* fix: exclude SIP
* fix: make SIPs exempt from stale bots

* update pr template
* left align, close to button it's related to
* text-muted, so it's a bit more subtle
* fix required func props, where no func it actually passed
* [WiP] debugging and improving 'Time Table'

closes #6948

* Lint

* Remove passing down props from CollectionControl

* Declarative passthrough of props

* remove console.error
* Add all database access permission to 'Alpha' role

* Grant all database access to Alpha
THEN is also a keyword in SQL
* fix: time series table

* fix: add default value for label

* fix: use prop values if defined

* fix: revert CollectionControl changes

(cherry picked from commit 5dab983)
* [load_examples] download data at runtime

When running `superset load_examples` to load example data sets,
Superset used to load from the local package. This created a few issues
notably around licensing (what are these datasets licensed as?) and
around package size.

For now, I moved the data sets here:
https://github.com/apache-superset/examples-data

Altered the logic to download the data from where it is stored.

* flakes
* feat: bump superset-ui versions to 0.11

* fix: update version number again

* fix: package-lock.json

* test: disable large number test

* fix: revert cors
* Adding permission for can_only_access_owned_queries

* Fixing lint adding typing to variable

* Adding test for queryview and enabling /queryview/api/read

* Fixing issues with python typing
mistercrunch and others added 11 commits June 3, 2019 09:52
* fix: SqlaColumn.type overflow on mysql

Hitting a new error when loading examples around a datatype that exceeds
the 32 chars limit on SqlaColumn.type

Type includes the 'COLLATE utf8mb4_general_ci' suffix which is too
verbose and not needed in that context.

* fix tests
* Adding codecov targets and thresholds

* Changing diff coverage rules to 1% threshold

* Changing codecov threshold to 0 and removing ignore
* Fix colors in ellipsis

* Change method name to align with convention

* Fix js lint
* Add Filter on DatabaseView that filters DBs Based on Role Access

* Update with mistercrunch's feedback
Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

I agree here, seen it both ways so much I couldn't tell which one is more common...

1AB9502 and others added 10 commits June 6, 2019 22:24
* Add new escape characters to OnPasteSelect

* Add Unit Tests to onPasteSelect_spec

* Update new line to tab escape character

* Fix indentation in 2 cases
* Apply dashboardFilter to dashboards

* added missing comma
* Refactor db_engine_specs into package

* Rename bigquery class and add epoch funcs

* Fix flake8 errors

* Dynamically load all engine specs

* Fix linting errors and unit tests

* Implement Snowflake epoch time funcs

* Implement Teradata epoch time func

* Fix presto datasource query and remove unused import

* Fix broken datasource query

* Add mypy ignore for false positive

* Add missing license files

* Make create_time_grains_tuple public

* Fix flake8 quote

* Fix incorrect licence header
@john-bodley john-bodley force-pushed the revert-7218-VIZ-414 branch from c1bbe29 to b1cb742 Compare June 8, 2019 22:30
@john-bodley john-bodley closed this Jun 8, 2019
john-bodley pushed a commit to john-bodley/superset that referenced this pull request Jun 8, 2019
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch deleted the revert-7218-VIZ-414 branch March 25, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.