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

Could not create dataset from query #15765

Merged

Conversation

rafatower
Copy link
Contributor

Rafa de la Torre added 4 commits July 27, 2020 19:09
Do not treat data sources of type query as  files or URI's when we
know for sure they are SQL queries.

This avoids problems such as errors
parsing (some_sql_expression)::some_cast as a URI.
There are circumstances in which there's a query but the data_type is
not set.

I think it can only happen in tests (not coming from the controller)
but just in case, let's make the code safer.
@rafatower rafatower changed the title [ibicarto1] Could not create dataset from query Could not create dataset from query Jul 28, 2020
@rafatower rafatower requested a review from manmorjim July 28, 2020 12:27
Copy link
Contributor

@manmorjim manmorjim left a comment

Choose a reason for hiding this comment

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

LGTM 👌

@rafatower rafatower merged commit e77c8c5 into master Jul 28, 2020
@rafatower rafatower deleted the bug/ch79725/ibicarto1-could-not-create-dataset-from-query branch July 28, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants