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

Query editor errors when referencing previous cells #18

Open
AbelVM opened this issue Nov 6, 2017 · 4 comments
Open

Query editor errors when referencing previous cells #18

AbelVM opened this issue Nov 6, 2017 · 4 comments
Labels

Comments

@AbelVM
Copy link

AbelVM commented Nov 6, 2017

Looks like you're not allowed to use aliases. This code fails

SELECT
   b.the_geom
FROM 
    {{myquery}} as b

And when you want to reference more than one cell with same columns and need to specify the table name, also fails

SELECT
   {{myquery2}}.cartodb_id
   {{myquery1}}.the_geom
FROM 
    {{myquery_1}} ,
    {{myquery_2}}
WHERE ...
@AbelVM AbelVM added the bug label Nov 6, 2017
@AbelVM
Copy link
Author

AbelVM commented Nov 6, 2017

Wrapping the cell reference within parentheses doesnt even work:

SELECT
   b.the_geom
FROM 
    ({{myquery}}) b

@alrocar
Copy link

alrocar commented Nov 6, 2017

Looks like a limitation in one of the core functions -> https://github.com/HVF/franchise/blob/master/src/db/generic.js#L98

Should we open a ticket on the master repo?

@AbelVM
Copy link
Author

AbelVM commented Nov 6, 2017

sure!

@AbelVM
Copy link
Author

AbelVM commented Nov 6, 2017

HVF#56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants