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

LEFT Join statement always return null #491

Closed
NetGH opened this issue Nov 30, 2017 · 4 comments
Closed

LEFT Join statement always return null #491

NetGH opened this issue Nov 30, 2017 · 4 comments

Comments

@NetGH
Copy link

NetGH commented Nov 30, 2017

we have a query

select * from table as a join table as b on a.name = b.name;
ksql-cli always display "null" and and query exit. May I know to troubleshoot that?

select * from table works .

Actually, we would like to implement a dwelltime calculation for a visit, there are two streams, one is entering stream, the other is leaving stream, we would like to calculate how many time it already taken for a specific visit.

Does KSQL support that?

@Satyajitv
Copy link

It could be because of the table alias name, that you have used in the query,
"as a" and "as b" and KSQL doesn't support inner join.
Please try below query,
select * from tablea left join tableb on tablea.name = tableb.name;

@NetGH NetGH closed this as completed Dec 5, 2017
@chengang2
Copy link

chengang2 commented Mar 5, 2018

@Satyajitv

select * from tablea left join tableb on tablea.name = tableb.name;

but the column of tableb is null. how to resolve?

@fengzheng1024
Copy link

I meet the same problem .

@fengzheng1024
Copy link

now,when I try single field table,
select * from tablea left join tableb on tablea.name = tableb.name;,
it is OK.

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

4 participants