-
Notifications
You must be signed in to change notification settings - Fork 113
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
SQL Editor: duplicate column does not show up in rows
API response
#4933
Comments
@begelundmuller I think it needs a design decision, for example, we hardly can make duplicate columns take names like id_1,id_2, ... on Runtime side, as request for them to DuckDB will fail. |
I have a somewhat similar issue that is probably related to this although not about the API. I created a source where I join 2 tables using a key with the same name.The I can write out (generate) the complete set of fields (25 in total in my case) but it seems counterintuitive to do so. Specially as we use Rill developer for ad-hoc data exploration. So most of the time a simple select * with a few joins is used to quickly analyse the data. |
@jaroet could you post a sample SQL here? |
If we make it possible to render a model with duplicate names it's only a starter for additional usability problems, for example, having a model with columns |
The sql that does not work is the following. The joinkey is available in both tables. In regular SQL editors it works and the second joinkey is shown as joinkey2. If aliases are used (like in my example) I personally would prefer an automatic name like d_joinkey. At least no duplicate names should be generated.
I know I can create 2 source files and join in the model step but then there is a possibility that both tables have minor differences as they are not updated on the exact same time (not very probably but still). |
The following query works in the DuckDB console:
The same query (minus the
limit
) does not return data for the duplicateid
column (id_1
) in Rill Developer's Preview Table:Here's the
rows
payload:Rill Developer's table profile information shows that the column does exist and that it has the same data as the original
id
column.The text was updated successfully, but these errors were encountered: