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  │
│    --------------------   │
│   nation ASC NULLS LAST,  │
│         o_year DESC       │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│          SortExec         │
│    --------------------   │
│  nation@0 ASC NULLS LAST, │
│        o_year@1 DESC      │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│       ProjectionExec      │
│    --------------------   │
│       nation: nation      │
│       o_year: o_year      │
│                           │
│        sum_profit:        │
│     sum(profit.amount)    │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│       AggregateExec       │
│    --------------------   │
│           aggr:           │
│     sum(profit.amount)    │
│                           │
│         group_by:         │
│       nation, o_year      │
│                           │
│           mode:           │
│      FinalPartitioned     │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│    CoalesceBatchesExec    │
│    --------------------   │
│     target_batch_size:    │
│           16384           │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│      RepartitionExec      │
│    --------------------   │
│ partition_count(in->out): │
│           8 -> 8          │
│                           │
│    partitioning_scheme:   │
│ Hash([nation@0, o_year@1],│
│             8)            │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│       AggregateExec       │
│    --------------------   │
│           aggr:           │
│     sum(profit.amount)    │
│                           │
│         group_by:         │
│       nation, o_year      │
│                           │
│       mode: Partial       │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│       ProjectionExec      │
│    --------------------   │
│          amount:          │
│ l_extendedprice * (Some(1)│
│   ,20,0 - l_discount) -   │
│       ps_supplycost *     │
│         l_quantity        │
│                           │
│       nation: n_name      │
│                           │
│          o_year:          │
│      date_part(YEAR,      │
│        o_orderdate)       │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│    CoalesceBatchesExec    │
│    --------------------   │
│     target_batch_size:    │
│           16384           │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│        HashJoinExec       │
│    --------------------   │
│            on:            ├──────────────┐
│(n_nationkey = s_nationkey)│              │
└─────────────┬─────────────┘              │
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│   LiquidCacheClientExec   ││       ProjectionExec      │
│    --------------------   ││    --------------------   │
│          server:          ││        l_discount:        │
│  http://localhost:50051,  ││         l_discount        │
│      object_stores=[]     ││                           │
│                           ││      l_extendedprice:     │
│                           ││      l_extendedprice      │
│                           ││                           │
│                           ││        l_quantity:        │
│                           ││         l_quantity        │
│                           ││                           │
│                           ││        o_orderdate:       │
│                           ││        o_orderdate        │
│                           ││                           │
│                           ││       ps_supplycost:      │
│                           ││       ps_supplycost       │
│                           ││                           │
│                           ││        s_nationkey:       │
│                           ││        s_nationkey        │
└─────────────┬─────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│       DataSourceExec      ││    CoalesceBatchesExec    │
│    --------------------   ││    --------------------   │
│          files: 1         ││     target_batch_size:    │
│      format: parquet      ││           16384           │
└───────────────────────────┘└─────────────┬─────────────┘
                             ┌─────────────┴─────────────┐
                             │        HashJoinExec       │
                             │    --------------------   │
                             │            on:            ├──────────────┐
                             │ (o_orderkey = l_orderkey) │              │
                             └─────────────┬─────────────┘              │
                             ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                             │   LiquidCacheClientExec   ││      RepartitionExec      │
                             │    --------------------   ││    --------------------   │
                             │          server:          ││ partition_count(in->out): │
                             │  http://localhost:50051,  ││           1 -> 8          │
                             │      object_stores=[]     ││                           │
                             │                           ││    partitioning_scheme:   │
                             │                           ││     RoundRobinBatch(8)    │
                             └─────────────┬─────────────┘└─────────────┬─────────────┘
                             ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                             │       DataSourceExec      ││    CoalesceBatchesExec    │
                             │    --------------------   ││    --------------------   │
                             │          files: 1         ││     target_batch_size:    │
                             │      format: parquet      ││           16384           │
                             └───────────────────────────┘└─────────────┬─────────────┘
                                                          ┌─────────────┴─────────────┐
                                                          │        HashJoinExec       │
                                                          │    --------------------   │
                                                          │            on:            ├────────────────────────────────────────────────────────────────────────┐
                                                          │ (l_suppkey = ps_suppkey), │                                                                        │
                                                          │  (l_partkey = ps_partkey) │                                                                        │
                                                          └─────────────┬─────────────┘                                                                        │
                                                          ┌─────────────┴─────────────┐                                                          ┌─────────────┴─────────────┐
                                                          │   CoalescePartitionsExec  │                                                          │   LiquidCacheClientExec   │
                                                          │                           │                                                          │    --------------------   │
                                                          │                           │                                                          │          server:          │
                                                          │                           │                                                          │  http://localhost:50051,  │
                                                          │                           │                                                          │      object_stores=[]     │
                                                          └─────────────┬─────────────┘                                                          └─────────────┬─────────────┘
                                                          ┌─────────────┴─────────────┐                                                          ┌─────────────┴─────────────┐
                                                          │       ProjectionExec      │                                                          │       DataSourceExec      │
                                                          │    --------------------   │                                                          │    --------------------   │
                                                          │        l_discount:        │                                                          │          files: 1         │
                                                          │         l_discount        │                                                          │      format: parquet      │
                                                          │                           │                                                          │      predicate: true      │
                                                          │      l_extendedprice:     │                                                          │                           │
                                                          │      l_extendedprice      │                                                          │                           │
                                                          │                           │                                                          │                           │
                                                          │        l_orderkey:        │                                                          │                           │
                                                          │         l_orderkey        │                                                          │                           │
                                                          │                           │                                                          │                           │
                                                          │    l_partkey: l_partkey   │                                                          │                           │
                                                          │                           │                                                          │                           │
                                                          │        l_quantity:        │                                                          │                           │
                                                          │         l_quantity        │                                                          │                           │
                                                          │                           │                                                          │                           │
                                                          │    l_suppkey: l_suppkey   │                                                          │                           │
                                                          │                           │                                                          │                           │
                                                          │        s_nationkey:       │                                                          │                           │
                                                          │        s_nationkey        │                                                          │                           │
                                                          └─────────────┬─────────────┘                                                          └───────────────────────────┘
                                                          ┌─────────────┴─────────────┐
                                                          │    CoalesceBatchesExec    │
                                                          │    --------------------   │
                                                          │     target_batch_size:    │
                                                          │           16384           │
                                                          └─────────────┬─────────────┘
                                                          ┌─────────────┴─────────────┐
                                                          │        HashJoinExec       │
                                                          │    --------------------   │
                                                          │            on:            ├──────────────┐
                                                          │  (s_suppkey = l_suppkey)  │              │
                                                          └─────────────┬─────────────┘              │
                                                          ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                                                          │   LiquidCacheClientExec   ││      RepartitionExec      │
                                                          │    --------------------   ││    --------------------   │
                                                          │          server:          ││ partition_count(in->out): │
                                                          │  http://localhost:50051,  ││           1 -> 8          │
                                                          │      object_stores=[]     ││                           │
                                                          │                           ││    partitioning_scheme:   │
                                                          │                           ││     RoundRobinBatch(8)    │
                                                          └─────────────┬─────────────┘└─────────────┬─────────────┘
                                                          ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                                                          │       DataSourceExec      ││    CoalesceBatchesExec    │
                                                          │    --------------------   ││    --------------------   │
                                                          │          files: 1         ││     target_batch_size:    │
                                                          │      format: parquet      ││           16384           │
                                                          └───────────────────────────┘└─────────────┬─────────────┘
                                                                                       ┌─────────────┴─────────────┐
                                                                                       │        HashJoinExec       │
                                                                                       │    --------------------   │
                                                                                       │            on:            ├──────────────┐
                                                                                       │  (p_partkey = l_partkey)  │              │
                                                                                       └─────────────┬─────────────┘              │
                                                                                       ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                                                                                       │   LiquidCacheClientExec   ││   LiquidCacheClientExec   │
                                                                                       │    --------------------   ││    --------------------   │
                                                                                       │          server:          ││          server:          │
                                                                                       │  http://localhost:50051,  ││  http://localhost:50051,  │
                                                                                       │      object_stores=[]     ││      object_stores=[]     │
                                                                                       └─────────────┬─────────────┘└─────────────┬─────────────┘
                                                                                       ┌─────────────┴─────────────┐┌─────────────┴─────────────┐
                                                                                       │       DataSourceExec      ││       DataSourceExec      │
                                                                                       │    --------------------   ││    --------------------   │
                                                                                       │          files: 1         ││          files: 1         │
                                                                                       │      format: parquet      ││      format: parquet      │
                                                                                       │                           ││                           │
                                                                                       │         predicate:        ││         predicate:        │
                                                                                       │    p_name LIKE %green%    ││       true AND true       │
                                                                                       └───────────────────────────┘└───────────────────────────┘