Skip to content

Merge Engine Bug #546

Closed
Closed

Description

@alpswjc

Hi There

Everyday we create a distributed table and also we have a merge table(merge engine) to combine all the distributed tables.

so there is the query , and it works well for distribute table
select abc from distributed_table where id GLOBAL IN (select id from local_table table)

but when we query merge table , we got an exception
select abc from merge_table where id GLOBAL IN (select id from local_table table)

Code: 60. DB::Exception: Received from localhost:9000, ::1. DB::Exception: Received from xxx.xxx.xxx.xxx:9000. DB::Exception: Table default.local doesn't exist..

if i understand GLOBAL IN correctly , this query will execute the subquery first and send to all the remote servers(shards), it doesn't require local_table to be exists in all remote servers. please correct me if i am wrong.

Thanks

Activity

  1. alpswjc commented on Mar 2, 2017

    @alpswjc
    Author

    Alex Zatelepin has confirmed its a bug

  2. added
    bug
    on Mar 2, 2017
  3. ztlpn commented on Jul 5, 2017

    @ztlpn
    Contributor

    fix was released in v1.1.54245

  4. added a commit that references this issue on Jan 7, 2025
  5. added a commit that references this issue on Nov 13, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions