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

Same name columns in query result are swallowed and column order can't be specified #74

Open
forchid opened this issue May 28, 2019 · 1 comment

Comments

@forchid
Copy link

forchid commented May 28, 2019

Query result issues

Case-1: Table a or b result are swallowed

actordb> actor bank(b);select * from accounts a join accounts b on a.id=b.id limit 20;
actordb (1)> c
******************
balance id name |
------------------
0       0  账户-0  |
1       1  账户-1  |
2       2  账户-2  |
3       3  账户-3  |
4       4  账户-4  |
5       5  账户-5  |
6       6  账户-6  |
7       7  账户-7  |
8       8  账户-8  |
9       9  账户-9  |
10      10 账户-10 |
11      11 账户-11 |
12      12 账户-12 |
13      13 账户-13 |
14      14 账户-14 |
15      15 账户-15 |
16      16 账户-16 |
17      17 账户-17 |
18      18 账户-18 |
19      19 账户-19 |
------------------

Case-2: As case-1

actordb> actor bank(b);select  a.*, b.* from accounts a join accounts b on a.id=b.id limit 20;
actordb (1)> c
******************
**balance id name**  |
------------------
0       0  账户-0  |
1       1  账户-1  |
2       2  账户-2  |
3       3  账户-3  |
4       4  账户-4  |
5       5  账户-5  |
6       6  账户-6  |
7       7  账户-7  |
8       8  账户-8  |
9       9  账户-9  |
10      10 账户-10 |
11      11 账户-11 |
12      12 账户-12 |
13      13 账户-13 |
14      14 账户-14 |
15      15 账户-15 |
16      16 账户-16 |
17      17 账户-17 |
18      18 账户-18 |
19      19 账户-19 |
------------------

Case-3: The columns order can't be specified in select(the result columns should be id,blance,name)

actordb> actor bank(b);select a.id, a.name, a.balance from accounts a limit 20;
actordb (1)> c
******************
balance id name  |
------------------
0       0  账户-0  |
1       1  账户-1  |
2       2  账户-2  |
3       3  账户-3  |
4       4  账户-4  |
5       5  账户-5  |
6       6  账户-6  |
7       7  账户-7  |
8       8  账户-8  |
9       9  账户-9  |
10      10 账户-10 |
11      11 账户-11 |
12      12 账户-12 |
13      13 账户-13 |
14      14 账户-14 |
15      15 账户-15 |
16      16 账户-16 |
17      17 账户-17 |
18      18 账户-18 |
19      19 账户-19 |
------------------
@SergejJurecko
Copy link
Contributor

SergejJurecko commented May 29, 2019 via email

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

No branches or pull requests

2 participants