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

Field names in big query can contain only alphanumeric and underscore #5641

Merged
merged 8 commits into from
Aug 21, 2018

Conversation

sumedhsakdeo
Copy link
Contributor

When we try to use explore view to plot charts against a BigQuery dataset, superset was used some characters in the field name which BigQuery syntax did not like.

Here, is the error returned by BigQuery
Invalid field name "AVG(lat)". Fields must contain only letters, numbers, and underscores, start with a letter or underscore, and be at most 128 characters long

This PR, fixes this issue so that we can plot charts against big query dataset.

@codecov-io
Copy link

codecov-io commented Aug 15, 2018

Codecov Report

Merging #5641 into master will decrease coverage by <.01%.
The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5641      +/-   ##
==========================================
- Coverage   63.49%   63.49%   -0.01%     
==========================================
  Files         360      360              
  Lines       22914    22926      +12     
  Branches     2551     2551              
==========================================
+ Hits        14550    14556       +6     
- Misses       8349     8355       +6     
  Partials       15       15
Impacted Files Coverage Δ
superset/viz.py 81.38% <100%> (+0.03%) ⬆️
superset/db_engine_specs.py 54.15% <33.33%> (-0.28%) ⬇️

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 0fbda33...b9d2027. Read the comment docs.

@sumedhsakdeo
Copy link
Contributor Author

As per your recommendation @mistercrunch found a better place for mutating label. PTAL

@mistercrunch
Copy link
Member

@sumedhsakdeo you have linting errors on the line that's very long

@mistercrunch mistercrunch merged commit 80e7778 into apache:master Aug 21, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 22, 2018
…apache#5641)

* Field names in big query can contain only alphanumeric and underscore

* bad quote

* better place for mutating labels

* lint

* bug fix thanks to mistercrunch

* lint

* lint again

(cherry picked from commit 80e7778)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Aug 22, 2018
…apache#5641)

* Field names in big query can contain only alphanumeric and underscore

* bad quote

* better place for mutating labels

* lint

* bug fix thanks to mistercrunch

* lint

* lint again

(cherry picked from commit 80e7778)
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
…apache#5641)

* Field names in big query can contain only alphanumeric and underscore

* bad quote

* better place for mutating labels

* lint

* bug fix thanks to mistercrunch

* lint

* lint again
@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 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants