使用COALESCE函数后,查询结果有误

【详述】

  • 建表语句
CREATE TABLE test (
  store_id varchar(20) NULL ,
  client_id varchar(20) NULL ,
  item_id varchar(20) NULL,
  item_name varchar(500) NULL ,
  detail_addcart_uv int(11) NULL,
  dt date NOT NULL
) ENGINE=OLAP 
DUPLICATE KEY(store_id, client_id)
COMMENT ""
PARTITION BY RANGE(dt)
(
PARTITION p202206 VALUES [("2023-06-01"), ("2023-07-01"))
)
DISTRIBUTED BY HASH(store_id, client_id, item_id) BUCKETS 8 
PROPERTIES (
"bloom_filter_columns" = "item_id"
);
  • 查询SQL
select a.dt, a.client_id ,a.item_name 
from ads.test a
where a.store_id = '3003'
and a.item_id = '2586569'
and a.dt in ('2023-06-24', '2023-06-23')
and a.detail_addcart_uv > 0
and COALESCE (a.item_id, '') != ''

当SQL中带有and COALESCE (a.item_id, '') != ''条件时,查询无数据,而上述SQL实际查询结果应是下面这样的。
image
【业务影响】
【StarRocks版本】例如:2.5.6
【集群规模】例如:3fe(1 follower+2observer)+8be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡,例如:64C/512G/万兆
【附件】

发个explain verbose 执行计划 ?

RESOURCE GROUP: default_wg

PLAN FRAGMENT 0(F01)
  Output Exprs:6: dt | 2: client_id | 4: item_name
  Input Partition: UNPARTITIONED
  RESULT SINK

  2:EXCHANGE
     cardinality: 1

PLAN FRAGMENT 1(F00)

  Input Partition: RANDOM
  OutPut Partition: UNPARTITIONED
  OutPut Exchange Id: 02

  1:Project
  |  output columns:
  |  2 <-> [2: client_id, VARCHAR, true]
  |  4 <-> [4: item_name, VARCHAR, true]
  |  6 <-> [6: dt, DATE, false]
  |  cardinality: 1
  |  
  0:OlapScanNode
     table: test2, rollup: test2
     preAggregation: on
     Predicates: [1: store_id, VARCHAR, true] = '3003', [3: item_id, VARCHAR, true] = '2586569', 6: dt IN ('2023-06-24', '2023-06-23'), [5: detail_addcart_uv, INT, true] > 0, coalesce[([3: item_id, VARCHAR, true], ''); args: VARCHAR; result: VARCHAR; args nullable: true; result nullable: true] != ''
     partitionsRatio=1/1, tabletsRatio=8/8
     tabletList=1718728,1718732,1718736,1718740,1718744,1718748,1718752,1718756
     actualRows=36501996, avgRowSize=34.291897
     cardinality: 1

收到,我先本地复现下,

帮获取一个Profile发下?

这是我昨天跑的profile

Query:
  Summary:
     - Query ID: 89facadf-13ef-11ee-9ab8-9cc2c44b4240
     - Start Time: 2023-06-26 15:03:22
     - End Time: 2023-06-26 15:03:22
     - Total: 38ms
     - Query Type: Query
     - Query State: EOF
     - StarRocks Version: 2.5.6-a193ae0
     - User: root
     - Default Db: ads
     - Sql Statement: SELECT a.dt, a.client_id   ,a.item_name 
from ads.test2 a
where a.store_id = '3003'
and a.item_id = '2586569'
and a.dt in ('2023-06-24', '2023-06-23')
and a.detail_addcart_uv &gt; 0
and COALESCE(a.item_id, '') != ''
     - QueryCpuCost: 1ms
     - QueryMemCost: 7.986MB
     - Variables: parallel_fragment_exec_instance_num=1,max_parallel_scan_instance_num=-1,pipeline_dop=0,enable_adaptive_sink_dop=false
     - Collect Profile Time: 16ms
  Planner:
     - Analyzer: 0ms / 1
     - CoordDeliverExec: 7ms / 1
     - CoordPrepareExec: 0ms / 1
     - ExecPlanBuild: 0ms / 1
     - Optimizer: 0ms / 1
     - Total: 1ms / 1
    Optimizer:
       - CostBaseOptimize: 0ms / 1
       - PhysicalRewrite: 0ms / 1
       - RuleBaseOptimize: 0ms / 1
       - preprocessMvs: 0ms / 1
  Execution Profile 89facadf-13ef-11ee-9ab8-9cc2c44b4240:
     - ExecutionTotalTime: 23.776ms
    Fragment 0:
       - BackendAddresses: 10.201.211.62:9060
       - BackendNum: 1
       - FragmentInstancePrepareTime: 650.159us
         - prepare-fragment-ctx: 23.335us
         - prepare-pipeline-driver: 81.867us
         - prepare-query-ctx: 6.578us
         - prepare-runtime-state: 81.867us
       - InstanceNum: 1
       - PeakMemoryUsage: 16.59 KB
       - QueryMemoryLimit: 128.00 GB
      Pipeline (id=0):
         - ActiveTime: 5.618us
           - __MAX_OF_ActiveTime: 14.103us
           - __MIN_OF_ActiveTime: 2.427us
         - BlockByInputEmpty: 0
         - BlockByOutputFull: 0
         - BlockByPrecondition: 0
         - DegreeOfParallelism: 32
         - DriverPrepareTime: 100.246us
           - __MAX_OF_DriverPrepareTime: 997.343us
           - __MIN_OF_DriverPrepareTime: 63.729us
         - DriverTotalTime: 24.260ms
           - __MAX_OF_DriverTotalTime: 25.824ms
           - __MIN_OF_DriverTotalTime: 23.135ms
         - OverheadTime: 0ns
         - PendingTime: 22.889ms
           - __MAX_OF_PendingTime: 22.942ms
           - __MIN_OF_PendingTime: 22.853ms
           - InputEmptyTime: 22.889ms
             - __MAX_OF_InputEmptyTime: 22.943ms
             - __MIN_OF_InputEmptyTime: 22.853ms
             - FirstInputEmptyTime: 22.889ms
               - __MAX_OF_FirstInputEmptyTime: 22.943ms
               - __MIN_OF_FirstInputEmptyTime: 22.853ms
             - FollowupInputEmptyTime: 0ns
           - OutputFullTime: 0ns
           - PendingFinishTime: 0ns
           - PreconditionBlockTime: 0ns
         - ScheduleCount: 32
           - __MAX_OF_ScheduleCount: 1
           - __MIN_OF_ScheduleCount: 1
         - ScheduleTime: 1.365ms
           - __MAX_OF_ScheduleTime: 2.877ms
           - __MIN_OF_ScheduleTime: 276.727us
         - TotalDegreeOfParallelism: 32
         - YieldByPreempt: 0
         - YieldByTimeLimit: 0
        RESULT_SINK:
          CommonMetrics:
             - CloseTime: 2.849us
               - __MAX_OF_CloseTime: 60.25us
               - __MIN_OF_CloseTime: 283ns
             - OperatorTotalTime: 3.159us
               - __MAX_OF_OperatorTotalTime: 60.160us
               - __MIN_OF_OperatorTotalTime: 414ns
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 21.840us
               - __MAX_OF_PrepareTime: 36.611us
               - __MIN_OF_PrepareTime: 18.458us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 0ns
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - SetFinishedTime: 60ns
               - __MAX_OF_SetFinishedTime: 97ns
               - __MIN_OF_SetFinishedTime: 22ns
             - SetFinishingTime: 250ns
               - __MAX_OF_SetFinishingTime: 540ns
               - __MIN_OF_SetFinishingTime: 25ns
          UniqueMetrics:
        EXCHANGE_SOURCE (plan_node_id=2):
          CommonMetrics:
             - CloseTime: 10.625us
               - __MAX_OF_CloseTime: 46.966us
               - __MIN_OF_CloseTime: 3.57us
             - OperatorTotalTime: 11.795us
               - __MAX_OF_OperatorTotalTime: 47.995us
               - __MIN_OF_OperatorTotalTime: 3.649us
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 44.121us
               - __MAX_OF_PrepareTime: 898.110us
               - __MIN_OF_PrepareTime: 13.732us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 0ns
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - RuntimeBloomFilterNum: 0
             - RuntimeInFilterNum: 0
             - SetFinishedTime: 169ns
               - __MAX_OF_SetFinishedTime: 275ns
               - __MIN_OF_SetFinishedTime: 20ns
             - SetFinishingTime: 999ns
               - __MAX_OF_SetFinishingTime: 10.368us
               - __MIN_OF_SetFinishingTime: 381ns
          UniqueMetrics:
             - BufferUnplugCount: 0
             - BytesPassThrough: 0.00 
             - BytesReceived: 0.00 
             - ClosureBlockCount: 0
             - ClosureBlockTime: 0ns
             - DecompressChunkTime: 0ns
             - DeserializeChunkTime: 0ns
             - ReceiverProcessTotalTime: 5.498us
             - RequestReceived: 1
             - SenderTotalTime: 5.236us
             - SenderWaitLockTime: 531ns
    Fragment 1:
       - BackendAddresses: 10.201.211.54:9060,10.201.211.44:9060,10.201.211.61:9060,10.201.211.48:9060,10.201.211.57:9060,10.201.211.58:9060,10.201.211.55:9060,10.201.211.62:9060
       - BackendNum: 8
       - FragmentInstancePrepareTime: 443.516us
         - __MAX_OF_FragmentInstancePrepareTime: 856.298us
         - __MIN_OF_FragmentInstancePrepareTime: 210.203us
         - prepare-fragment-ctx: 24.893us
         - prepare-pipeline-driver: 141.191us
         - prepare-query-ctx: 3.648us
         - prepare-runtime-state: 141.191us
       - InstanceNum: 8
       - PeakMemoryUsage: 56.43 MB
         - __MAX_OF_PeakMemoryUsage: 7.98 MB
         - __MIN_OF_PeakMemoryUsage: 5.02 MB
       - QueryMemoryLimit: 576.00 GB
         - __MAX_OF_QueryMemoryLimit: 128.00 GB
         - __MIN_OF_QueryMemoryLimit: 64.00 GB
      Pipeline (id=1):
         - ActiveTime: 169.807us
           - __MAX_OF_ActiveTime: 630.628us
           - __MIN_OF_ActiveTime: 52.600us
         - BlockByInputEmpty: 40
           - __MAX_OF_BlockByInputEmpty: 1
           - __MIN_OF_BlockByInputEmpty: 1
         - BlockByOutputFull: 0
         - BlockByPrecondition: 0
         - DegreeOfParallelism: 5
         - DriverPrepareTime: 107.210us
           - __MAX_OF_DriverPrepareTime: 203.409us
           - __MIN_OF_DriverPrepareTime: 43.718us
         - DriverTotalTime: 13.544ms
           - __MAX_OF_DriverTotalTime: 22.702ms
           - __MIN_OF_DriverTotalTime: 7.518ms
         - OverheadTime: 0ns
         - PendingTime: 12.881ms
           - __MAX_OF_PendingTime: 20.674ms
           - __MIN_OF_PendingTime: 6.842ms
           - InputEmptyTime: 12.702ms
             - __MAX_OF_InputEmptyTime: 20.443ms
             - __MIN_OF_InputEmptyTime: 6.648ms
             - FirstInputEmptyTime: 129.426us
               - __MAX_OF_FirstInputEmptyTime: 219.495us
               - __MIN_OF_FirstInputEmptyTime: 75.69us
             - FollowupInputEmptyTime: 12.573ms
               - __MAX_OF_FollowupInputEmptyTime: 20.228ms
               - __MIN_OF_FollowupInputEmptyTime: 6.502ms
           - OutputFullTime: 0ns
           - PendingFinishTime: 185.919us
             - __MAX_OF_PendingFinishTime: 298.840us
             - __MIN_OF_PendingFinishTime: 97.146us
           - PreconditionBlockTime: 0ns
         - ScheduleCount: 80
           - __MAX_OF_ScheduleCount: 2
           - __MIN_OF_ScheduleCount: 2
         - ScheduleTime: 493.572us
           - __MAX_OF_ScheduleTime: 1.889ms
           - __MIN_OF_ScheduleTime: 101.966us
         - TotalDegreeOfParallelism: 40
           - __MAX_OF_TotalDegreeOfParallelism: 5
           - __MIN_OF_TotalDegreeOfParallelism: 5
         - YieldByPreempt: 0
         - YieldByTimeLimit: 0
        EXCHANGE_SINK (plan_node_id=2):
          CommonMetrics:
             - CloseTime: 3.805us
               - __MAX_OF_CloseTime: 25.859us
               - __MIN_OF_CloseTime: 230ns
             - OperatorTotalTime: 26.267us
               - __MAX_OF_OperatorTotalTime: 130.768us
               - __MIN_OF_OperatorTotalTime: 4.359us
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 37.604us
               - __MAX_OF_PrepareTime: 82.458us
               - __MIN_OF_PrepareTime: 16.225us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 0ns
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - SetFinishedTime: 42ns
               - __MAX_OF_SetFinishedTime: 80ns
               - __MIN_OF_SetFinishedTime: 20ns
             - SetFinishingTime: 22.418us
               - __MAX_OF_SetFinishingTime: 116.827us
               - __MIN_OF_SetFinishingTime: 3.395us
          UniqueMetrics:
             - DestID: 2
             - DestFragments: 89facadf13ef11ee-9ab89cc2c44b4249
             - PartType: UNPARTITIONED
             - ChannelNum: 1
             - BytesPassThrough: 0.00 
             - BytesSent: 0.00 
             - CompressTime: 0ns
             - NetworkBandwidth: 0.0 /sec
             - NetworkTime: 302.172us
               - __MAX_OF_NetworkTime: 1.651ms
               - __MIN_OF_NetworkTime: 0ns
             - OverallThroughput: 0.0 /sec
             - OverallTime: 181.128us
               - __MAX_OF_OverallTime: 242.940us
               - __MIN_OF_OverallTime: 133.856us
             - RequestSent: 0
             - RpcAvgTime: 254.755us
               - __MAX_OF_RpcAvgTime: 1.651ms
               - __MIN_OF_RpcAvgTime: -335058ns
             - RpcCount: 8
               - __MAX_OF_RpcCount: 1
               - __MIN_OF_RpcCount: 1
             - SerializeChunkTime: 0ns
             - ShuffleHashTime: 0ns
             - UncompressedBytes: 0.00 
             - WaitTime: 190.971us
               - __MAX_OF_WaitTime: 221.46us
               - __MIN_OF_WaitTime: 155.212us
        PROJECT (plan_node_id=1):
          CommonMetrics:
             - CloseTime: 6.205us
               - __MAX_OF_CloseTime: 24.63us
               - __MIN_OF_CloseTime: 2.397us
             - OperatorTotalTime: 6.443us
               - __MAX_OF_OperatorTotalTime: 24.522us
               - __MIN_OF_OperatorTotalTime: 2.577us
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 12.57us
               - __MAX_OF_PrepareTime: 23.557us
               - __MIN_OF_PrepareTime: 4.569us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 0ns
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - RuntimeBloomFilterNum: 0
             - RuntimeInFilterNum: 0
             - SetFinishedTime: 65ns
               - __MAX_OF_SetFinishedTime: 140ns
               - __MIN_OF_SetFinishedTime: 21ns
             - SetFinishingTime: 171ns
               - __MAX_OF_SetFinishingTime: 345ns
               - __MIN_OF_SetFinishingTime: 21ns
          UniqueMetrics:
             - CommonSubExprComputeTime: 0ns
             - ExprComputeTime: 0ns
        CHUNK_ACCUMULATE (plan_node_id=0):
          CommonMetrics:
             - CloseTime: 330ns
               - __MAX_OF_CloseTime: 501ns
               - __MIN_OF_CloseTime: 164ns
             - OperatorTotalTime: 805ns
               - __MAX_OF_OperatorTotalTime: 1.378us
               - __MIN_OF_OperatorTotalTime: 374ns
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 11.295us
               - __MAX_OF_PrepareTime: 26.102us
               - __MIN_OF_PrepareTime: 3.784us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 0ns
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - SetFinishedTime: 231ns
               - __MAX_OF_SetFinishedTime: 441ns
               - __MIN_OF_SetFinishedTime: 45ns
             - SetFinishingTime: 243ns
               - __MAX_OF_SetFinishingTime: 541ns
               - __MIN_OF_SetFinishingTime: 22ns
          UniqueMetrics:
        OLAP_SCAN (plan_node_id=0):
          CommonMetrics:
             - CloseTime: 183.859us
               - __MAX_OF_CloseTime: 1.320ms
               - __MIN_OF_CloseTime: 12.429us
             - OperatorTotalTime: 295.407us
               - __MAX_OF_OperatorTotalTime: 1.685ms
               - __MIN_OF_OperatorTotalTime: 43.48us
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 19.370us
               - __MAX_OF_PrepareTime: 36.399us
               - __MIN_OF_PrepareTime: 6.681us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 110.443us
               - __MAX_OF_PullTotalTime: 415.591us
               - __MIN_OF_PullTotalTime: 28.480us
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - RuntimeBloomFilterNum: 0
             - RuntimeInFilterNum: 0
             - SetFinishedTime: 114ns
               - __MAX_OF_SetFinishedTime: 304ns
               - __MIN_OF_SetFinishedTime: 21ns
             - SetFinishingTime: 989ns
               - __MAX_OF_SetFinishingTime: 1.879us
               - __MIN_OF_SetFinishingTime: 301ns
          UniqueMetrics:
             - MorselQueueType: physical_split_morsel_queue
             - BufferUnplugThreshold: 32
             - SharedScan: False
             - Predicates: 1: store_id = '3003', 3: item_id = '2586569', 6: dt IN ('2023-06-24', '2023-06-23'), 5: detail_addcart_uv &gt; 0, coalesce(3: item_id, '') != ''
             - Rollup: test2
             - Table: test2
             - BufferUnplugCount: 0
             - BytesRead: 8.17 MB
               - __MAX_OF_BytesRead: 1.03 MB
               - __MIN_OF_BytesRead: 1.02 MB
             - CachedPagesNum: 113
               - __MAX_OF_CachedPagesNum: 16
               - __MIN_OF_CachedPagesNum: 9
             - ChunkBufferCapacity: 320
             - CompressedBytesRead: 990.64 KB
               - __MAX_OF_CompressedBytesRead: 990.64 KB
               - __MIN_OF_CompressedBytesRead: 0.00 
             - CreateSegmentIter: 37.163us
               - __MAX_OF_CreateSegmentIter: 47.174us
               - __MIN_OF_CreateSegmentIter: 25.885us
             - DefaultChunkBufferCapacity: 320
             - DictDecode: 1.106us
               - __MAX_OF_DictDecode: 1.310us
               - __MIN_OF_DictDecode: 902ns
             - GetDelVec: 115ns
               - __MAX_OF_GetDelVec: 223ns
               - __MIN_OF_GetDelVec: 39ns
             - GetRowsets: 368ns
               - __MAX_OF_GetRowsets: 788ns
               - __MIN_OF_GetRowsets: 171ns
             - IOTaskExecTime: 12.433ms
               - __MAX_OF_IOTaskExecTime: 19.936ms
               - __MIN_OF_IOTaskExecTime: 6.562ms
             - IOTaskWaitTime: 20.530us
               - __MAX_OF_IOTaskWaitTime: 27.207us
               - __MIN_OF_IOTaskWaitTime: 14.799us
             - IOTime: 124.982us
               - __MAX_OF_IOTime: 999.859us
               - __MIN_OF_IOTime: 0ns
             - LateMaterialize: 1.607us
               - __MAX_OF_LateMaterialize: 1.642us
               - __MIN_OF_LateMaterialize: 1.573us
             - MorselsCount: 8
               - __MAX_OF_MorselsCount: 1
               - __MIN_OF_MorselsCount: 0
             - PeakChunkBufferSize: 1
             - PushdownPredicates: 5
             - RawRowsRead: 120.095K (120095)
               - __MAX_OF_RawRowsRead: 15.296K (15296)
               - __MIN_OF_RawRowsRead: 14.681K (14681)
             - ReadPagesNum: 120
               - __MAX_OF_ReadPagesNum: 16
               - __MIN_OF_ReadPagesNum: 14
             - RowsRead: 0
             - ScanTime: 12.454ms
               - __MAX_OF_ScanTime: 19.963ms
               - __MIN_OF_ScanTime: 6.582ms
             - SegmentInit: 11.711ms
               - __MAX_OF_SegmentInit: 19.25ms
               - __MIN_OF_SegmentInit: 6.152ms
               - BitmapIndexFilter: 0ns
               - BitmapIndexFilterRows: 0
               - BloomFilterFilterRows: 0
               - SegmentRuntimeZoneMapFilterRows: 0
               - SegmentZoneMapFilterRows: 0
               - ShortKeyFilterRows: 36.381901M (36381901)
                 - __MAX_OF_ShortKeyFilterRows: 4.551877M (4551877)
                 - __MIN_OF_ShortKeyFilterRows: 4.542561M (4542561)
               - ZoneMapIndexFilterRows: 0
             - SegmentRead: 589.38us
               - __MAX_OF_SegmentRead: 1.213ms
               - __MIN_OF_SegmentRead: 315.957us
               - BlockFetch: 340.357us
                 - __MAX_OF_BlockFetch: 610.278us
                 - __MIN_OF_BlockFetch: 191.964us
               - BlockFetchCount: 32
                 - __MAX_OF_BlockFetchCount: 4
                 - __MIN_OF_BlockFetchCount: 4
               - BlockSeek: 262.334us
                 - __MAX_OF_BlockSeek: 603.980us
                 - __MIN_OF_BlockSeek: 136.874us
               - BlockSeekCount: 40
                 - __MAX_OF_BlockSeekCount: 5
                 - __MIN_OF_BlockSeekCount: 5
               - ChunkCopy: 3.342us
                 - __MAX_OF_ChunkCopy: 9.623us
                 - __MIN_OF_ChunkCopy: 1.85us
               - DecompressT: 0ns
               - DelVecFilterRows: 0
               - IndexLoad: 0ns
               - PredFilter: 41.730us
                 - __MAX_OF_PredFilter: 70.990us
                 - __MIN_OF_PredFilter: 19.390us
               - PredFilterRows: 120.095K (120095)
                 - __MAX_OF_PredFilterRows: 15.296K (15296)
                 - __MIN_OF_PredFilterRows: 14.681K (14681)
               - RowsetsReadCount: 8
                 - __MAX_OF_RowsetsReadCount: 1
                 - __MIN_OF_RowsetsReadCount: 1
               - SegmentsReadCount: 8
                 - __MAX_OF_SegmentsReadCount: 1
                 - __MIN_OF_SegmentsReadCount: 1
               - TotalColumnsDataPageCount: 29.94K (29940)
                 - __MAX_OF_TotalColumnsDataPageCount: 3.748K (3748)
                 - __MIN_OF_TotalColumnsDataPageCount: 3.738K (3738)
             - SubmitTaskCount: 8
               - __MAX_OF_SubmitTaskCount: 1
               - __MIN_OF_SubmitTaskCount: 0
             - TabletCount: 1
             - UncompressedBytesRead: 990.43 KB
               - __MAX_OF_UncompressedBytesRead: 990.43 KB
               - __MIN_OF_UncompressedBytesRead: 0.00 
      Pipeline (id=0):
         - ActiveTime: 118.918us
           - __MAX_OF_ActiveTime: 205.863us
           - __MIN_OF_ActiveTime: 66.639us
         - BlockByInputEmpty: 0
         - BlockByOutputFull: 0
         - BlockByPrecondition: 0
         - DegreeOfParallelism: 1
         - DriverPrepareTime: 77.57us
           - __MAX_OF_DriverPrepareTime: 114.86us
           - __MIN_OF_DriverPrepareTime: 35.867us
         - DriverTotalTime: 714.379us
           - __MAX_OF_DriverTotalTime: 1.70ms
           - __MIN_OF_DriverTotalTime: 373.620us
         - OverheadTime: 0ns
         - PendingTime: 0ns
           - InputEmptyTime: 0ns
             - FirstInputEmptyTime: 0ns
             - FollowupInputEmptyTime: 0ns
           - OutputFullTime: 0ns
           - PendingFinishTime: 0ns
           - PreconditionBlockTime: 0ns
         - ScheduleCount: 8
           - __MAX_OF_ScheduleCount: 1
           - __MIN_OF_ScheduleCount: 1
         - ScheduleTime: 595.461us
           - __MAX_OF_ScheduleTime: 910.756us
           - __MIN_OF_ScheduleTime: 302.187us
         - TotalDegreeOfParallelism: 8
           - __MAX_OF_TotalDegreeOfParallelism: 1
           - __MIN_OF_TotalDegreeOfParallelism: 1
         - YieldByPreempt: 0
         - YieldByTimeLimit: 0
        NOOP_SINK (plan_node_id=0):
          CommonMetrics:
             - CloseTime: 373ns
               - __MAX_OF_CloseTime: 596ns
               - __MIN_OF_CloseTime: 170ns
             - OperatorTotalTime: 605ns
               - __MAX_OF_OperatorTotalTime: 975ns
               - __MIN_OF_OperatorTotalTime: 334ns
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 15.575us
               - __MAX_OF_PrepareTime: 23.816us
               - __MIN_OF_PrepareTime: 5.953us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 0ns
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - SetFinishedTime: 49ns
               - __MAX_OF_SetFinishedTime: 78ns
               - __MIN_OF_SetFinishedTime: 22ns
             - SetFinishingTime: 183ns
               - __MAX_OF_SetFinishingTime: 301ns
               - __MIN_OF_SetFinishingTime: 116ns
          UniqueMetrics:
        OLAP_SCAN_PREPARE (plan_node_id=0):
          CommonMetrics:
             - CloseTime: 8.226us
               - __MAX_OF_CloseTime: 17.246us
               - __MIN_OF_CloseTime: 4.914us
             - OperatorTotalTime: 121.864us
               - __MAX_OF_OperatorTotalTime: 209.995us
               - __MIN_OF_OperatorTotalTime: 67.770us
             - PeakMemoryUsage: 0.00 
             - PrepareTime: 24.876us
               - __MAX_OF_PrepareTime: 37.805us
               - __MIN_OF_PrepareTime: 11.854us
             - PullChunkNum: 0
             - PullRowNum: 0
             - PullTotalTime: 113.362us
               - __MAX_OF_PullTotalTime: 198.390us
               - __MIN_OF_PullTotalTime: 62.728us
             - PushChunkNum: 0
             - PushRowNum: 0
             - PushTotalTime: 0ns
             - RuntimeBloomFilterNum: 0
             - RuntimeInFilterNum: 0
             - SetFinishedTime: 105ns
               - __MAX_OF_SetFinishedTime: 205ns
               - __MIN_OF_SetFinishedTime: 42ns
             - SetFinishingTime: 170ns
               - __MAX_OF_SetFinishingTime: 285ns
               - __MIN_OF_SetFinishingTime: 71ns
          UniqueMetrics:

set enable_tablet_internal_parallel=false; 再查下,看结果是对的吗?

设置了这个后,查询耗时非常严重了。都查询不出来了。