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

fixing Issue #4335 - Not quoting column name when doing a time series #4343

Closed
wants to merge 1 commit into from

Conversation

davelpz
Copy link

@davelpz davelpz commented Feb 5, 2018

Fixed issue as discussed in Issue #4335 comments.

@rumbin
Copy link
Contributor

rumbin commented Feb 5, 2018

Will this PR respawn issue #3844? See also #4064...

@@ -113,7 +113,7 @@ def get_time_filter(self, start_dttm, end_dttm):
def get_timestamp_expression(self, time_grain):
"""Getting the time component of the query"""
expr = self.expression or self.column_name
if not self.expression and not time_grain:
if not self.expression and (not time_grain or time_grain == u'Time Column'):
Copy link
Member

Choose a reason for hiding this comment

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

u'foo' isn't python3 compatible I think. I'm surprised that label-looking Time Column is a possible value here, somehow it should be time_column or None instead.

Copy link
Author

Choose a reason for hiding this comment

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

Yea, it's u'Time Column' not None or something else

Copy link
Author

Choose a reason for hiding this comment

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

I looked up the python 3 docs, the u'foo' is valid in python 3

@kstan79
Copy link

kstan79 commented Apr 28, 2018

hi any solution regarding this? During I'm evaluate superset via my sample mysql data warehouse, notice that lot of charts cannot be generate due to no backquote column name. Example like Sum(Sales Amount) cause sql error.

@mistercrunch
Copy link
Member

@kstan79 I think this is fixed on master, can you confirm?

@kristw kristw added !deprecated-label:bug Deprecated label - Use #bug instead and removed !deprecated-label:bug Deprecated label - Use #bug instead labels Jan 23, 2019
@stale
Copy link

stale bot commented Apr 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 10, 2019
@stale stale bot closed this Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants