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

Queries That Run Successfully in Airpal may Fail in Airbnb #1823

Closed
jefffeng opened this issue Dec 13, 2016 · 1 comment
Closed

Queries That Run Successfully in Airpal may Fail in Airbnb #1823

jefffeng opened this issue Dec 13, 2016 · 1 comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead sqllab Namespace | Anything related to the SQL Lab

Comments

@jefffeng
Copy link

We've encountered several SQL queries that will complete successfully in Airpal, but will fail in SQL Lab with either the Run Query or the "Run Async" button. Here is an example query below, as well as the screenshots for Airpal

Example 1

create table tmp.holidaycards as
select a.id_guest, a.id_host, a.dim_host_language, a.dim_guest_language
from (select * from magical_booking.fct_bookings_detail where ds>='2016-01-01') a
left join (select * from core_data.fct_cancellations where ds>='2016-01-01' ) b
on a.id_reservation=b.id_reservation
join (select * from core_data.fct_reviews_of_guest where ds>='2016-01-01' and dim_overall_rating in ('4','5')) c
on a.id_reservation=c.id_reservation
join (select * from core_data.fct_reviews_of_host where ds>='2016-01-01' and dim_overall_rating in ('4','5')) d
on a.id_reservation=d.id_reservation
where b.id_reservation is null

Query works in Airpal:

screen shot 2016-12-12 at 9 25 59 pm

Query does not work in SQL Lab:
screen shot 2016-12-12 at 9 29 23 pm

@jefffeng jefffeng added !deprecated-label:bug Deprecated label - Use #bug instead sqllab Namespace | Anything related to the SQL Lab labels Dec 13, 2016
@jfeng15
Copy link

jfeng15 commented Feb 19, 2017

Issue can be closed now. Query now works in SQL Lab

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 sqllab Namespace | Anything related to the SQL Lab
Projects
None yet
Development

No branches or pull requests

3 participants