liquid-cache-client 0.1.10

10x lower latency for cloud-native DataFusion
Documentation
---
source: src/client/src/tests/mod.rs
expression: displayable.tree_render().to_string()
---
┌───────────────────────────┐
│  SortPreservingMergeExec  │
│    --------------------   │
│  numwait DESC, s_name ASC │
│         NULLS LAST        │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│          SortExec         │
│    --------------------   │
│  numwait@1 DESC, s_name@0 │
│       ASC NULLS LAST      │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│       ProjectionExec      │
│    --------------------   │
│          numwait:         │
│      count(Int64(1))      │
│                           │
│       s_name: s_name      │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│       AggregateExec       │
│    --------------------   │
│       aggr: count(1)      │
│      group_by: s_name     │
│                           │
│           mode:           │
│      FinalPartitioned     │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│    CoalesceBatchesExec    │
│    --------------------   │
│     target_batch_size:    │
│           16384           │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│      RepartitionExec      │
│    --------------------   │
│ partition_count(in->out): │
│           8 -> 8          │
│                           │
│    partitioning_scheme:   │
│    Hash([s_name@0], 8)    │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│       AggregateExec       │
│    --------------------   │
│       aggr: count(1)      │
│      group_by: s_name     │
│       mode: Partial       │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│    CoalesceBatchesExec    │
│    --------------------   │
│     target_batch_size:    │
│           16384           │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│        HashJoinExec       │
│    --------------------   │
│          filter:          │
│   l_suppkey != l_suppkey  │
│                           ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│    join_type: LeftAnti    │                                                                                                                                  │
│                           │                                                                                                                                  │
│            on:            │                                                                                                                                  │
│ (l_orderkey = l_orderkey) │                                                                                                                                  │
└─────────────┬─────────────┘                                                                                                                                  │
┌─────────────┴─────────────┐                                                                                                                    ┌─────────────┴─────────────┐
│    CoalesceBatchesExec    │                                                                                                                    │   LiquidCacheClientExec   │
│    --------------------   │                                                                                                                    │    --------------------   │
│     target_batch_size:    │                                                                                                                    │          server:          │
│           16384           │                                                                                                                    │  http://localhost:50051,  │
│                           │                                                                                                                    │      object_stores=[]     │
└─────────────┬─────────────┘                                                                                                                    └─────────────┬─────────────┘
┌─────────────┴─────────────┐                                                                                                                    ┌─────────────┴─────────────┐
│        HashJoinExec       │                                                                                                                    │      RepartitionExec      │
│    --------------------   │                                                                                                                    │    --------------------   │
│          filter:          │                                                                                                                    │ partition_count(in->out): │
│   l_suppkey != l_suppkey  │                                                                                                                    │           1 -> 8          │
│                           ├─────────────────────────────────────────────────────────────────────────────────────────────────────┐              │                           │
│    join_type: LeftSemi    │                                                                                                     │              │    partitioning_scheme:   │
│                           │                                                                                                     │              │     RoundRobinBatch(8)    │
│            on:            │                                                                                                     │              │                           │
│ (l_orderkey = l_orderkey) │                                                                                                     │              │                           │
└─────────────┬─────────────┘                                                                                                     │              └─────────────┬─────────────┘
┌─────────────┴─────────────┐                                                                                       ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│   CoalescePartitionsExec  │                                                                                       │   LiquidCacheClientExec   ││       DataSourceExec      │
│                           │                                                                                       │    --------------------   ││    --------------------   │
│                           │                                                                                       │          server:          ││          files: 1         │
│                           │                                                                                       │  http://localhost:50051,  ││      format: parquet      │
│                           │                                                                                       │      object_stores=[]     ││                           │
│                           │                                                                                       │                           ││         predicate:        │
│                           │                                                                                       │                           ││      l_receiptdate >      │
│                           │                                                                                       │                           ││        l_commitdate       │
└─────────────┬─────────────┘                                                                                       └─────────────┬─────────────┘└───────────────────────────┘
┌─────────────┴─────────────┐                                                                                       ┌─────────────┴─────────────┐
│    CoalesceBatchesExec    │                                                                                       │       DataSourceExec      │
│    --------------------   │                                                                                       │    --------------------   │
│     target_batch_size:    │                                                                                       │          files: 1         │
│           16384           │                                                                                       │      format: parquet      │
└─────────────┬─────────────┘                                                                                       └───────────────────────────┘
┌─────────────┴─────────────┐
│        HashJoinExec       │
│    --------------------   │
│            on:            ├──────────────┐
│(n_nationkey = s_nationkey)│              │
└─────────────┬─────────────┘              │
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│   LiquidCacheClientExec   ││    CoalesceBatchesExec    │
│    --------------------   ││    --------------------   │
│          server:          ││     target_batch_size:    │
│  http://localhost:50051,  ││           16384           │
│      object_stores=[]     ││                           │
└─────────────┬─────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│       DataSourceExec      ││        HashJoinExec       │
│    --------------------   ││    --------------------   │
│          files: 1         ││            on:            │
│      format: parquet      ││ (o_orderkey = l_orderkey) ├──────────────┐
│                           ││                           │              │
│         predicate:        ││                           │              │
│   n_name = SAUDI ARABIA   ││                           │              │
└───────────────────────────┘└─────────────┬─────────────┘              │
                             ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                             │   LiquidCacheClientExec   ││    CoalesceBatchesExec    │
                             │    --------------------   ││    --------------------   │
                             │          server:          ││     target_batch_size:    │
                             │  http://localhost:50051,  ││           16384           │
                             │      object_stores=[]     ││                           │
                             └─────────────┬─────────────┘└─────────────┬─────────────┘
                             ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                             │       DataSourceExec      ││        HashJoinExec       │
                             │    --------------------   ││    --------------------   │
                             │          files: 1         ││            on:            │
                             │      format: parquet      ││  (s_suppkey = l_suppkey)  ├──────────────┐
                             │                           ││                           │              │
                             │         predicate:        ││                           │              │
                             │     o_orderstatus = F     ││                           │              │
                             └───────────────────────────┘└─────────────┬─────────────┘              │
                                                          ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                                                          │   LiquidCacheClientExec   ││   LiquidCacheClientExec   │
                                                          │    --------------------   ││    --------------------   │
                                                          │          server:          ││          server:          │
                                                          │  http://localhost:50051,  ││  http://localhost:50051,  │
                                                          │      object_stores=[]     ││      object_stores=[]     │
                                                          └─────────────┬─────────────┘└─────────────┬─────────────┘
                                                          ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                                                          │       DataSourceExec      ││      RepartitionExec      │
                                                          │    --------------------   ││    --------------------   │
                                                          │          files: 1         ││ partition_count(in->out): │
                                                          │      format: parquet      ││           1 -> 8          │
                                                          │      predicate: true      ││                           │
                                                          │                           ││    partitioning_scheme:   │
                                                          │                           ││     RoundRobinBatch(8)    │
                                                          └───────────────────────────┘└─────────────┬─────────────┘
                                                                                       ┌─────────────┴─────────────┐
                                                                                       │       DataSourceExec      │
                                                                                       │    --------------------   │
                                                                                       │          files: 1         │
                                                                                       │      format: parquet      │
                                                                                       │                           │
                                                                                       │         predicate:        │
                                                                                       │      l_receiptdate >      │
                                                                                       │        l_commitdate       │
                                                                                       │      AND true AND true    │
                                                                                       └───────────────────────────┘