Skip to content

clickhouse-client --query does not return results #62

Closed

Description

@bseng

I'm use the clickhouse-client in interactive mode and when I run a query with inner join between 2 subqueries, results are returned

However when I run the same query with batch mode i.e. 'clickhouse-client --query=""' no results are return in bash.

there's no error in the log and the access log looks the same for the 2 queries

can you see if you can replicate it?

Activity

  1. bseng commented on Jul 28, 2016

    @bseng
    ContributorAuthor

    I've found out whats wrong, when it run with batch mode the regexp get encode so \1 becomes \1 so nothing can be match.

    you will need to put \1 instead of \1

  2. alexey-milovidov commented on Jul 28, 2016

    @alexey-milovidov
    Member

    Also possible to pass query to stdin:
    clickhouse-client < query.sql

    That avoids shell escaping issues.

  3. added a commit that references this issue on Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions