You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2026/04/22 15:23:50 UTC

(doris) branch master updated: [feature](catalog) Unify ES catalog scan through FILE_SCAN path, eliminating PluginDrivenEsScanNode (#62602)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c7ef91fef7a [feature](catalog) Unify ES catalog scan through FILE_SCAN path, eliminating PluginDrivenEsScanNode (#62602)
c7ef91fef7a is described below

commit c7ef91fef7a7eea2163880ac51656733fe7a93d4
Author: Mingyu Chen (Rayner) <yu...@selectdb.com>
AuthorDate: Wed Apr 22 08:23:41 2026 -0700

    [feature](catalog) Unify ES catalog scan through FILE_SCAN path, eliminating PluginDrivenEsScanNode (#62602)
    
    Related PR: #62183
    
    Problem Summary:
    
    Before this change, ES catalog queries went through a dedicated
    `PluginDrivenEsScanNode` → `ES_HTTP_SCAN_NODE` → `EsScanner` code path,
    while JDBC catalogs used `PluginDrivenScanNode` → `FILE_SCAN_NODE` →
    `FileScanner`. The two paths had completely separate plan-generation
    logic,
    Thrift structures, and BE execution flows, making the connector SPI
    harder
    to maintain and extend.
    
    This PR routes ES catalog scans through the same `FILE_SCAN_NODE` path
    that
    JDBC already uses, achieving a single unified scan-node implementation
    for
    all plugin-driven connectors. The key changes are:
    
    **Thrift layer**
    - Add `FORMAT_ES_HTTP = 19` to `TFileFormatType`
    - Add `es_params` (per-shard map) to `TTableFormatFileDesc`
    - Add `es_properties`, `es_docvalue_context`, `es_fields_context` to
      `TFileScanRangeParams` (shared across shards)
    
    **BE — EsHttpReader (new, native C++)**
    - New `GenericReader` subclass in
    `be/src/format/table/es_http_reader.{h,cpp}`
    - Wraps existing `ESScanReader` (HTTP scroll) and `ScrollParser`
    (JSON→columns)
    - No JVM overhead — pure C++ HTTP reader, unlike JniReader used by some
    formats
    - Registered in `FileScanner::_get_next_reader()` for `FORMAT_ES_HTTP`
    - Implements `get_columns()` and `fill_all_columns() = true`
    
    **FE — Connector SPI extension**
    - Add `ScanNodePropertiesResult` class: typed wrapper carrying both scan
      properties and a `notPushedConjunctIndices` set with explicit
    `hasConjunctTracking` flag (distinguishes "no tracking" from "all
    pushed")
    - Add `getScanNodePropertiesResult()` to `ConnectorScanPlanProvider`
    
    **FE — ES connector adaptation**
    - `EsScanRange`: changed to `FILE_SCAN` range type, added `getPath()`,
      `getTableFormatType()`, `getFileFormat()`, BE-compatible property keys
    - `EsScanPlanProvider`: builds scan node properties with query_dsl,
      doc_values_mode, auth, docvalue/fields context serialization
    - `EsConnectorMetadata`: added `getColumnHandles()` using
    `NamedColumnHandle`
    
    **FE — PluginDrivenScanNode enhancement**
    - Added ES format mapping (`es_http` → `FORMAT_ES_HTTP`)
    - Added `setEsParams()` / `setEsScanLevelParams()` for ES Thrift fields
    - Added conjunct pruning via `ScanNodePropertiesResult` (removes
    pushed-down
      filters including `esquery()` fake function)
    - Added ES-specific EXPLAIN output
    
    **FE — Cleanup**
    - Deleted `PluginDrivenEsScanNode.java` (390 lines)
    - Simplified `PhysicalPlanTranslator`: removed ES-specific branch, all
      plugin-driven connectors now go through `PluginDrivenScanNode`
    
    ### Release note
    
    ES catalog scans now use the unified FILE_SCAN execution path shared
    with
    JDBC and other plugin-driven connectors. This is an internal
    architectural
    change — query behavior and results are unchanged. The `esquery()`
    function
    and doc-value optimization continue to work as before.
    
    ### Check List (For Author)
    
    - Test: Regression test — all 7 ES test suites pass
        - test_es_query
        - test_es_query_nereids
        - test_es_flatten_type
        - test_es_keyword_array_type
        - test_es_query_no_http_url
        - test_es_query_predicate_correctness
        - test_es_catalog_http_open_api
    - Behavior changed: No
    - Does this need documentation: No
---
 be/src/exec/operator/es_scan_operator.cpp          | 151 -------
 be/src/exec/operator/es_scan_operator.h            |  87 ----
 be/src/exec/operator/operator.cpp                  |   2 -
 be/src/exec/operator/scan_operator.cpp             |   3 -
 be/src/exec/pipeline/pipeline_fragment_context.cpp |   9 -
 be/src/exec/scan/es_scanner.cpp                    | 205 ----------
 be/src/exec/scan/es_scanner.h                      |  80 ----
 be/src/exec/scan/file_scanner.cpp                  |   7 +
 be/src/format/table/es/es_http_reader.cpp          | 259 ++++++++++++
 be/src/format/table/es/es_http_reader.h            | 101 +++++
 .../{exec => format/table}/es/es_scan_reader.cpp   |   6 +-
 be/src/{exec => format/table}/es/es_scan_reader.h  |   0
 .../{exec => format/table}/es/es_scroll_parser.cpp |   2 +-
 .../{exec => format/table}/es/es_scroll_parser.h   |   0
 .../{exec => format/table}/es/es_scroll_query.cpp  |   4 +-
 be/src/{exec => format/table}/es/es_scroll_query.h |   0
 be/test/format/table/es_http_reader_test.cpp       |  72 ++++
 .../api/scan/ConnectorScanPlanProvider.java        |  76 +++-
 .../connector/api/scan/ConnectorScanRange.java     |  30 ++
 .../connector/api/scan/ConnectorScanRangeType.java |   6 +-
 .../api/scan/ScanNodePropertiesResult.java         |  86 ++++
 .../doris/connector/es/EsConnectorMetadata.java    |  15 +
 .../apache/doris/connector/es/EsHostAddress.java   | 104 +++++
 .../org/apache/doris/connector/es/EsNodeInfo.java  |  38 +-
 .../doris/connector/es/EsScanPlanProvider.java     | 184 ++++++---
 .../org/apache/doris/connector/es/EsScanRange.java |  52 ++-
 .../apache/doris/connector/es/EsShardRouting.java  |   4 +-
 .../connector/es/EsNodeInfoAndScanRangeTest.java   |  59 ++-
 .../doris/connector/es/EsScanPlanProviderTest.java |  80 ++--
 fe/fe-connector/fe-connector-hive/pom.xml          |  15 +
 .../apache/doris/connector/hive/HiveScanRange.java |  44 ++
 fe/fe-connector/fe-connector-hudi/pom.xml          |  15 +
 .../apache/doris/connector/hudi/HudiScanRange.java |  79 ++++
 fe/fe-connector/fe-connector-maxcompute/pom.xml    |  15 +
 .../connector/maxcompute/MaxComputeScanRange.java  |  25 ++
 fe/fe-connector/fe-connector-paimon/pom.xml        |  15 +
 .../connector/paimon/PaimonScanPlanProvider.java   |  32 ++
 .../doris/connector/paimon/PaimonScanRange.java    |  83 ++++
 fe/fe-connector/fe-connector-trino/pom.xml         |  15 +
 .../doris/connector/trino/TrinoScanRange.java      |  42 ++
 .../doris/datasource/PluginDrivenEsScanNode.java   | 390 ------------------
 .../doris/datasource/PluginDrivenScanNode.java     | 441 ++++++---------------
 .../glue/translator/PhysicalPlanTranslator.java    |  16 +-
 gensrc/thrift/PlanNodes.thrift                     |  12 +-
 .../es/test_es_query_predicate_correctness.groovy  |  55 +++
 45 files changed, 1584 insertions(+), 1432 deletions(-)

diff --git a/be/src/exec/operator/es_scan_operator.cpp b/be/src/exec/operator/es_scan_operator.cpp
deleted file mode 100644
index 9d0fc138ddc..00000000000
--- a/be/src/exec/operator/es_scan_operator.cpp
+++ /dev/null
@@ -1,151 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-#include "exec/operator/es_scan_operator.h"
-
-#include "exec/es/es_scan_reader.h"
-#include "exec/es/es_scroll_query.h"
-#include "exec/scan/es_scanner.h"
-
-namespace doris {
-// Prefer to the local host
-static std::string get_host_and_port(const std::vector<doris::TNetworkAddress>& es_hosts) {
-    std::string host_port;
-    std::string localhost = doris::BackendOptions::get_localhost();
-
-    doris::TNetworkAddress host = es_hosts[0];
-    for (auto& es_host : es_hosts) {
-        if (es_host.hostname == localhost) {
-            host = es_host;
-            break;
-        }
-    }
-
-    host_port = host.hostname;
-    host_port += ":";
-    host_port += std::to_string(host.port);
-    return host_port;
-}
-
-Status EsScanLocalState::_init_profile() {
-    RETURN_IF_ERROR(Base::_init_profile());
-
-    _blocks_read_counter = ADD_COUNTER(custom_profile(), "BlocksRead", TUnit::UNIT);
-    _read_timer = ADD_TIMER(custom_profile(), "TotalRawReadTime(*)");
-    _materialize_timer = ADD_TIMER(custom_profile(), "MaterializeTupleTime(*)");
-    return Status::OK();
-}
-
-Status EsScanLocalState::_process_conjuncts(RuntimeState* state) {
-    RETURN_IF_ERROR(Base::_process_conjuncts(state));
-    if (Base::_eos) {
-        return Status::OK();
-    }
-
-    CHECK(Base::_parent->cast<EsScanOperatorX>()._properties.find(ESScanReader::KEY_QUERY_DSL) !=
-          Base::_parent->cast<EsScanOperatorX>()._properties.end());
-    return Status::OK();
-}
-
-Status EsScanLocalState::_init_scanners(std::list<ScannerSPtr>* scanners) {
-    if (_scan_ranges.empty()) {
-        _eos = true;
-        _scan_dependency->set_ready();
-        return Status::OK();
-    }
-
-    auto& p = Base::_parent->cast<EsScanOperatorX>();
-    for (auto& es_scan_range : _scan_ranges) {
-        // Collect the information from scan range to properties
-        std::map<std::string, std::string> properties(p._properties);
-        properties[ESScanReader::KEY_INDEX] = es_scan_range->index;
-        if (es_scan_range->__isset.type) {
-            properties[ESScanReader::KEY_TYPE] = es_scan_range->type;
-        }
-        properties[ESScanReader::KEY_SHARD] = std::to_string(es_scan_range->shard_id);
-        properties[ESScanReader::KEY_BATCH_SIZE] = std::to_string(_state->batch_size());
-        properties[ESScanReader::KEY_HOST_PORT] = get_host_and_port(es_scan_range->es_hosts);
-        // push down limit to Elasticsearch
-        // if predicate in _conjuncts can not be processed by Elasticsearch, we can not push down limit operator to Elasticsearch
-        if (p.limit() != -1 && p.limit() <= _state->batch_size() && p.conjuncts().empty()) {
-            properties[ESScanReader::KEY_TERMINATE_AFTER] = std::to_string(p.limit());
-        }
-
-        bool doc_value_mode = false;
-        properties[ESScanReader::KEY_QUERY] = ESScrollQueryBuilder::build(
-                properties, p._column_names, p._docvalue_context, &doc_value_mode);
-
-        std::shared_ptr<EsScanner> scanner = EsScanner::create_shared(
-                _state, this, p._limit, p._tuple_id, properties, p._docvalue_context,
-                doc_value_mode, _state->runtime_profile());
-
-        RETURN_IF_ERROR(scanner->init(_state, Base::_conjuncts));
-        scanners->push_back(scanner);
-    }
-
-    return Status::OK();
-}
-
-void EsScanLocalState::set_scan_ranges(RuntimeState* state,
-                                       const std::vector<TScanRangeParams>& scan_ranges) {
-    for (auto& es_scan_range : scan_ranges) {
-        DCHECK(es_scan_range.scan_range.__isset.es_scan_range);
-        _scan_ranges.emplace_back(new TEsScanRange(es_scan_range.scan_range.es_scan_range));
-    }
-}
-
-EsScanOperatorX::EsScanOperatorX(ObjectPool* pool, const TPlanNode& tnode, int operator_id,
-                                 const DescriptorTbl& descs, int parallel_tasks)
-        : ScanOperatorX<EsScanLocalState>(pool, tnode, operator_id, descs, parallel_tasks),
-          _tuple_id(tnode.es_scan_node.tuple_id),
-          _tuple_desc(nullptr) {
-    ScanOperatorX<EsScanLocalState>::_output_tuple_id = tnode.es_scan_node.tuple_id;
-}
-
-Status EsScanOperatorX::init(const TPlanNode& tnode, RuntimeState* state) {
-    RETURN_IF_ERROR(ScanOperatorX<EsScanLocalState>::init(tnode, state));
-
-    // use TEsScanNode
-    _properties = tnode.es_scan_node.properties;
-
-    if (tnode.es_scan_node.__isset.docvalue_context) {
-        _docvalue_context = tnode.es_scan_node.docvalue_context;
-    }
-
-    if (tnode.es_scan_node.__isset.fields_context) {
-        _fields_context = tnode.es_scan_node.fields_context;
-    }
-    return Status::OK();
-}
-
-Status EsScanOperatorX::prepare(RuntimeState* state) {
-    RETURN_IF_ERROR(ScanOperatorX<EsScanLocalState>::prepare(state));
-
-    _tuple_desc = state->desc_tbl().get_tuple_descriptor(_tuple_id);
-    if (_tuple_desc == nullptr) {
-        return Status::InternalError("Failed to get tuple descriptor, _tuple_id=i{}", _tuple_id);
-    }
-
-    // set up column name vector for ESScrollQueryBuilder
-    for (auto* slot_desc : _tuple_desc->slots()) {
-        _column_names.push_back(slot_desc->col_name());
-    }
-
-    return Status::OK();
-}
-
-} // namespace doris
diff --git a/be/src/exec/operator/es_scan_operator.h b/be/src/exec/operator/es_scan_operator.h
deleted file mode 100644
index 19e1bc04df0..00000000000
--- a/be/src/exec/operator/es_scan_operator.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-#pragma once
-
-#include <stdint.h>
-
-#include <string>
-
-#include "common/status.h"
-#include "exec/operator/operator.h"
-#include "exec/operator/scan_operator.h"
-
-namespace doris {
-
-class EsScanner;
-} // namespace doris
-
-namespace doris {
-
-class EsScanOperatorX;
-class EsScanLocalState final : public ScanLocalState<EsScanLocalState> {
-public:
-    using Parent = EsScanOperatorX;
-    using Base = ScanLocalState<EsScanLocalState>;
-    ENABLE_FACTORY_CREATOR(EsScanLocalState);
-    EsScanLocalState(RuntimeState* state, OperatorXBase* parent) : Base(state, parent) {}
-
-private:
-    friend class EsScanner;
-
-    void set_scan_ranges(RuntimeState* state,
-                         const std::vector<TScanRangeParams>& scan_ranges) override;
-    Status _init_profile() override;
-    Status _process_conjuncts(RuntimeState* state) override;
-    Status _init_scanners(std::list<ScannerSPtr>* scanners) override;
-
-    std::vector<std::unique_ptr<TEsScanRange>> _scan_ranges;
-    // FIXME: non-static data member '_rows_read_counter' of 'EsScanLocalState' shadows member inherited from type 'ScanLocalStateBase'
-#ifdef __clang__
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wshadow-field"
-#endif
-    RuntimeProfile::Counter* _blocks_read_counter = nullptr;
-#ifdef __clang__
-#pragma clang diagnostic pop
-#endif
-    RuntimeProfile::Counter* _read_timer = nullptr;
-    RuntimeProfile::Counter* _materialize_timer = nullptr;
-};
-
-class EsScanOperatorX final : public ScanOperatorX<EsScanLocalState> {
-public:
-    EsScanOperatorX(ObjectPool* pool, const TPlanNode& tnode, int operator_id,
-                    const DescriptorTbl& descs, int parallel_tasks);
-
-    Status init(const TPlanNode& tnode, RuntimeState* state) override;
-    Status prepare(RuntimeState* state) override;
-
-private:
-    friend class EsScanLocalState;
-
-    TupleId _tuple_id;
-    TupleDescriptor* _tuple_desc = nullptr;
-
-    std::map<std::string, std::string> _properties;
-    std::map<std::string, std::string> _fields_context;
-    std::map<std::string, std::string> _docvalue_context;
-
-    std::vector<std::string> _column_names;
-};
-
-} // namespace doris
diff --git a/be/src/exec/operator/operator.cpp b/be/src/exec/operator/operator.cpp
index 496e7718f48..ded2cba1983 100644
--- a/be/src/exec/operator/operator.cpp
+++ b/be/src/exec/operator/operator.cpp
@@ -35,7 +35,6 @@
 #include "exec/operator/dict_sink_operator.h"
 #include "exec/operator/distinct_streaming_aggregation_operator.h"
 #include "exec/operator/empty_set_operator.h"
-#include "exec/operator/es_scan_operator.h"
 #include "exec/operator/exchange_sink_operator.h"
 #include "exec/operator/exchange_source_operator.h"
 #include "exec/operator/file_scan_operator.h"
@@ -847,7 +846,6 @@ DECLARE_OPERATOR(OlapScanLocalState)
 DECLARE_OPERATOR(GroupCommitLocalState)
 DECLARE_OPERATOR(JDBCScanLocalState)
 DECLARE_OPERATOR(FileScanLocalState)
-DECLARE_OPERATOR(EsScanLocalState)
 DECLARE_OPERATOR(AnalyticLocalState)
 DECLARE_OPERATOR(SortLocalState)
 DECLARE_OPERATOR(SpillSortLocalState)
diff --git a/be/src/exec/operator/scan_operator.cpp b/be/src/exec/operator/scan_operator.cpp
index 81fb121a6a0..5a731ae580b 100644
--- a/be/src/exec/operator/scan_operator.cpp
+++ b/be/src/exec/operator/scan_operator.cpp
@@ -27,7 +27,6 @@
 #include "common/global_types.h"
 #include "core/data_type/data_type.h"
 #include "core/data_type/data_type_array.h"
-#include "exec/operator/es_scan_operator.h"
 #include "exec/operator/file_scan_operator.h"
 #include "exec/operator/group_commit_scan_operator.h"
 #include "exec/operator/jdbc_scan_operator.h"
@@ -1365,8 +1364,6 @@ template class ScanOperatorX<JDBCScanLocalState>;
 template class ScanLocalState<JDBCScanLocalState>;
 template class ScanOperatorX<FileScanLocalState>;
 template class ScanLocalState<FileScanLocalState>;
-template class ScanOperatorX<EsScanLocalState>;
-template class ScanLocalState<EsScanLocalState>;
 template class ScanLocalState<MetaScanLocalState>;
 template class ScanOperatorX<MetaScanLocalState>;
 template class ScanOperatorX<GroupCommitLocalState>;
diff --git a/be/src/exec/pipeline/pipeline_fragment_context.cpp b/be/src/exec/pipeline/pipeline_fragment_context.cpp
index eed4a5cb53e..0750dcbb33a 100644
--- a/be/src/exec/pipeline/pipeline_fragment_context.cpp
+++ b/be/src/exec/pipeline/pipeline_fragment_context.cpp
@@ -62,7 +62,6 @@
 #include "exec/operator/dict_sink_operator.h"
 #include "exec/operator/distinct_streaming_aggregation_operator.h"
 #include "exec/operator/empty_set_operator.h"
-#include "exec/operator/es_scan_operator.h"
 #include "exec/operator/exchange_sink_operator.h"
 #include "exec/operator/exchange_source_operator.h"
 #include "exec/operator/file_scan_operator.h"
@@ -1342,14 +1341,6 @@ Status PipelineFragmentContext::_create_operator(ObjectPool* pool, const TPlanNo
         fe_with_old_version = !tnode.__isset.is_serial_operator;
         break;
     }
-    case TPlanNodeType::ES_SCAN_NODE:
-    case TPlanNodeType::ES_HTTP_SCAN_NODE: {
-        op = std::make_shared<EsScanOperatorX>(pool, tnode, next_operator_id(), descs,
-                                               _num_instances);
-        RETURN_IF_ERROR(cur_pipe->add_operator(op, _parallel_instances));
-        fe_with_old_version = !tnode.__isset.is_serial_operator;
-        break;
-    }
     case TPlanNodeType::EXCHANGE_NODE: {
         int num_senders = _params.per_exch_num_senders.contains(tnode.node_id)
                                   ? _params.per_exch_num_senders.find(tnode.node_id)->second
diff --git a/be/src/exec/scan/es_scanner.cpp b/be/src/exec/scan/es_scanner.cpp
deleted file mode 100644
index 20e83e013f3..00000000000
--- a/be/src/exec/scan/es_scanner.cpp
+++ /dev/null
@@ -1,205 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-#include "exec/scan/es_scanner.h"
-
-#include <algorithm>
-#include <ostream>
-#include <utility>
-
-#include "common/logging.h"
-#include "core/block/block.h"
-#include "core/block/column_with_type_and_name.h"
-#include "core/column/column.h"
-#include "exec/operator/es_scan_operator.h"
-#include "runtime/descriptors.h"
-#include "runtime/runtime_profile.h"
-#include "runtime/runtime_state.h"
-
-namespace doris {
-class VExprContext;
-} // namespace doris
-
-static const std::string NEW_SCANNER_TYPE = "EsScanner";
-
-namespace doris {
-
-EsScanner::EsScanner(RuntimeState* state, ScanLocalStateBase* local_state, int64_t limit,
-                     TupleId tuple_id, const std::map<std::string, std::string>& properties,
-                     const std::map<std::string, std::string>& docvalue_context,
-                     bool doc_value_mode, RuntimeProfile* profile)
-        : Scanner(state, local_state, limit, profile),
-          _es_eof(false),
-          _properties(properties),
-          _line_eof(false),
-          _batch_eof(false),
-          _tuple_id(tuple_id),
-          _tuple_desc(nullptr),
-          _es_reader(nullptr),
-          _es_scroll_parser(nullptr),
-          _docvalue_context(docvalue_context),
-          _doc_value_mode(doc_value_mode) {
-    _has_prepared = false;
-}
-
-Status EsScanner::init(RuntimeState* state, const VExprContextSPtrs& conjuncts) {
-    VLOG_CRITICAL << NEW_SCANNER_TYPE << "::init";
-    RETURN_IF_ERROR(Scanner::init(_state, conjuncts));
-
-    if (nullptr == state) {
-        return Status::InternalError("input pointer is null.");
-    }
-
-    _tuple_desc = state->desc_tbl().get_tuple_descriptor(_tuple_id);
-    if (nullptr == _tuple_desc) {
-        return Status::InternalError("Failed to get tuple descriptor, tuple_id={}", _tuple_id);
-    }
-
-    const std::string& host = _properties.at(ESScanReader::KEY_HOST_PORT);
-    _es_reader.reset(new ESScanReader(host, _properties, _doc_value_mode));
-    if (_es_reader == nullptr) {
-        return Status::InternalError("Es reader construct failed.");
-    }
-
-    return Status::OK();
-}
-
-Status EsScanner::_open_impl(RuntimeState* state) {
-    VLOG_CRITICAL << NEW_SCANNER_TYPE << "::open";
-
-    if (nullptr == state) {
-        return Status::InternalError("input pointer is null.");
-    }
-
-    if (!_has_prepared) {
-        return Status::InternalError("used before initialize.");
-    }
-
-    RETURN_IF_CANCELLED(state);
-    RETURN_IF_ERROR(Scanner::_open_impl(state));
-
-    RETURN_IF_ERROR(_es_reader->open());
-
-    return Status::OK();
-}
-
-Status EsScanner::_get_block_impl(RuntimeState* state, Block* block, bool* eof) {
-    VLOG_CRITICAL << NEW_SCANNER_TYPE << "::_get_block_impl";
-    if (nullptr == state || nullptr == block || nullptr == eof) {
-        return Status::InternalError("input is NULL pointer");
-    }
-
-    if (!_has_prepared) {
-        return Status::InternalError("used before initialize.");
-    }
-
-    RETURN_IF_CANCELLED(state);
-
-    if (_es_eof == true) {
-        *eof = true;
-        return Status::OK();
-    }
-
-    auto column_size = _tuple_desc->slots().size();
-    std::vector<MutableColumnPtr> columns(column_size);
-
-    bool mem_reuse = block->mem_reuse();
-    const int batch_size = state->batch_size();
-    // only empty block should be here
-    DCHECK(block->rows() == 0);
-
-    do {
-        columns.resize(column_size);
-        for (auto i = 0; i < column_size; i++) {
-            if (mem_reuse) {
-                columns[i] = block->get_by_position(i).column->assume_mutable();
-            } else {
-                columns[i] = _tuple_desc->slots()[i]->get_empty_mutable_column();
-            }
-        }
-
-        while (columns[0]->size() < batch_size && !_es_eof) {
-            RETURN_IF_CANCELLED(state);
-            // Get from scanner
-            RETURN_IF_ERROR(_get_next(columns));
-        }
-
-        if (_es_eof == true) {
-            if (block->rows() == 0) {
-                *eof = true;
-            }
-            break;
-        }
-
-        // Before really use the Block, must clear other ptr of column in block
-        // So here need do std::move and clear in `columns`
-        if (!mem_reuse) {
-            int column_index = 0;
-            for (const auto slot_desc : _tuple_desc->slots()) {
-                block->insert(ColumnWithTypeAndName(std::move(columns[column_index++]),
-                                                    slot_desc->get_data_type_ptr(),
-                                                    slot_desc->col_name()));
-            }
-        } else {
-            columns.clear();
-        }
-        VLOG_ROW << "EsScanner output rows: " << block->rows();
-    } while (block->rows() == 0 && !(*eof));
-    return Status::OK();
-}
-
-Status EsScanner::_get_next(std::vector<MutableColumnPtr>& columns) {
-    SCOPED_TIMER(_local_state->cast<EsScanLocalState>()._read_timer);
-    if (_line_eof && _batch_eof) {
-        _es_eof = true;
-        return Status::OK();
-    }
-
-    while (!_batch_eof) {
-        if (_line_eof || _es_scroll_parser == nullptr) {
-            RETURN_IF_ERROR(_es_reader->get_next(&_batch_eof, _es_scroll_parser));
-            if (_batch_eof) {
-                _es_eof = true;
-                return Status::OK();
-            }
-        }
-
-        COUNTER_UPDATE(_local_state->cast<EsScanLocalState>()._blocks_read_counter, 1);
-        SCOPED_TIMER(_local_state->cast<EsScanLocalState>()._materialize_timer);
-        RETURN_IF_ERROR(_es_scroll_parser->fill_columns(_tuple_desc, columns, &_line_eof,
-                                                        _docvalue_context, _state->timezone_obj()));
-        if (!_line_eof) {
-            break;
-        }
-    }
-
-    return Status::OK();
-}
-
-Status EsScanner::close(RuntimeState* state) {
-    if (!_try_close()) {
-        return Status::OK();
-    }
-
-    if (_es_reader != nullptr) {
-        RETURN_IF_ERROR(_es_reader->close());
-    }
-
-    RETURN_IF_ERROR(Scanner::close(state));
-    return Status::OK();
-}
-} // namespace doris
diff --git a/be/src/exec/scan/es_scanner.h b/be/src/exec/scan/es_scanner.h
deleted file mode 100644
index 154d2e31109..00000000000
--- a/be/src/exec/scan/es_scanner.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-#pragma once
-
-#include <stdint.h>
-
-#include <map>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "common/factory_creator.h"
-#include "common/global_types.h"
-#include "common/status.h"
-#include "core/data_type/data_type.h"
-#include "exec/es/es_scan_reader.h"
-#include "exec/es/es_scroll_parser.h"
-#include "exec/scan/scanner.h"
-
-namespace doris {
-class RuntimeProfile;
-class RuntimeState;
-class TupleDescriptor;
-
-class Block;
-class VExprContext;
-} // namespace doris
-
-namespace doris {
-
-class EsScanner : public Scanner {
-    ENABLE_FACTORY_CREATOR(EsScanner);
-
-public:
-    EsScanner(RuntimeState* state, ScanLocalStateBase* local_state, int64_t limit, TupleId tuple_id,
-              const std::map<std::string, std::string>& properties,
-              const std::map<std::string, std::string>& docvalue_context, bool doc_value_mode,
-              RuntimeProfile* profile);
-
-    Status _open_impl(RuntimeState* state) override;
-    Status close(RuntimeState* state) override;
-    Status init(RuntimeState* state, const VExprContextSPtrs& conjuncts) override;
-
-protected:
-    Status _get_block_impl(RuntimeState* state, Block* block, bool* eof) override;
-
-private:
-    Status _get_next(std::vector<MutableColumnPtr>& columns);
-    bool _es_eof;
-
-    const std::map<std::string, std::string>& _properties;
-
-    bool _line_eof;
-    bool _batch_eof;
-
-    TupleId _tuple_id;
-    const TupleDescriptor* _tuple_desc = nullptr;
-
-    std::unique_ptr<ESScanReader> _es_reader;
-    std::unique_ptr<ScrollParser> _es_scroll_parser;
-
-    const std::map<std::string, std::string>& _docvalue_context;
-    bool _doc_value_mode;
-};
-} // namespace doris
diff --git a/be/src/exec/scan/file_scanner.cpp b/be/src/exec/scan/file_scanner.cpp
index cff29c68e8b..e3ef634c726 100644
--- a/be/src/exec/scan/file_scanner.cpp
+++ b/be/src/exec/scan/file_scanner.cpp
@@ -64,6 +64,7 @@
 #include "format/native/native_reader.h"
 #include "format/orc/vorc_reader.h"
 #include "format/parquet/vparquet_reader.h"
+#include "format/table/es/es_http_reader.h"
 #include "format/table/hive_reader.h"
 #include "format/table/hudi_jni_reader.h"
 #include "format/table/hudi_reader.h"
@@ -1153,6 +1154,12 @@ Status FileScanner::_get_next_reader() {
             break;
         }
 #endif
+        case TFileFormatType::FORMAT_ES_HTTP: {
+            _cur_reader = EsHttpReader::create_unique(_file_slot_descs, _state, _profile, range,
+                                                      *_params, _real_tuple_desc);
+            init_status = static_cast<EsHttpReader*>(_cur_reader.get())->init_reader();
+            break;
+        }
         default:
             return Status::NotSupported("Not supported create reader for file format: {}.",
                                         to_string(_params->format_type));
diff --git a/be/src/format/table/es/es_http_reader.cpp b/be/src/format/table/es/es_http_reader.cpp
new file mode 100644
index 00000000000..24cc4410b63
--- /dev/null
+++ b/be/src/format/table/es/es_http_reader.cpp
@@ -0,0 +1,259 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "format/table/es/es_http_reader.h"
+
+#include <gen_cpp/PlanNodes_types.h>
+
+#include <algorithm>
+#include <cctype>
+#include <sstream>
+
+#include "format/table/es/es_scan_reader.h"
+#include "format/table/es/es_scroll_parser.h"
+#include "format/table/es/es_scroll_query.h"
+#include "runtime/descriptors.h"
+#include "runtime/runtime_profile.h"
+#include "runtime/runtime_state.h"
+#include "service/backend_options.h"
+
+namespace doris {
+
+const std::string EsHttpReader::KEY_ES_HOSTS = "es_hosts";
+
+EsHttpReader::EsHttpReader(const std::vector<SlotDescriptor*>& file_slot_descs, RuntimeState* state,
+                           RuntimeProfile* profile, const TFileRangeDesc& range,
+                           const TFileScanRangeParams& params, const TupleDescriptor* tuple_desc)
+        : _state(state),
+          _profile(profile),
+          _tuple_desc(tuple_desc),
+          _range(range),
+          _params(params),
+          _file_slot_descs(file_slot_descs) {
+    _init_profile();
+}
+
+EsHttpReader::~EsHttpReader() = default;
+
+void EsHttpReader::_init_profile() {
+    if (_profile == nullptr) {
+        return;
+    }
+    static const char* es_profile = "EsHttpReader";
+    ADD_TIMER_WITH_LEVEL(_profile, es_profile, 1);
+    _es_profile.read_time = ADD_CHILD_TIMER_WITH_LEVEL(_profile, "EsReadTime", es_profile, 1);
+    _es_profile.materialize_time =
+            ADD_CHILD_TIMER_WITH_LEVEL(_profile, "EsMaterializeTime", es_profile, 1);
+    _es_profile.batches_read =
+            ADD_CHILD_COUNTER_WITH_LEVEL(_profile, "EsBatchesRead", TUnit::UNIT, es_profile, 1);
+    _es_profile.rows_read =
+            ADD_CHILD_COUNTER_WITH_LEVEL(_profile, "EsRowsRead", TUnit::UNIT, es_profile, 1);
+}
+
+std::string EsHttpReader::_extract_hostname(std::string host) {
+    auto scheme_end = host.find("://");
+    if (scheme_end != std::string::npos) {
+        host = host.substr(scheme_end + 3);
+    }
+
+    if (!host.empty() && host.front() == '[') {
+        auto bracket_end = host.find(']');
+        if (bracket_end != std::string::npos) {
+            return host.substr(1, bracket_end - 1);
+        }
+        return host;
+    }
+
+    auto colon = host.rfind(':');
+    if (colon == std::string::npos) {
+        return host;
+    }
+    std::string port = host.substr(colon + 1);
+    if (!port.empty() && std::all_of(port.begin(), port.end(),
+                                     [](unsigned char ch) { return std::isdigit(ch) != 0; })) {
+        return host.substr(0, colon);
+    }
+    return host;
+}
+
+Status EsHttpReader::init_reader() {
+    // Build properties map from Thrift params, combining per-range (es_params)
+    // and per-node (es_properties) parameters.
+    std::map<std::string, std::string> properties;
+
+    // Per-node shared properties (auth, query_dsl, doc_values_mode, etc.)
+    if (_params.__isset.es_properties) {
+        properties.insert(_params.es_properties.begin(), _params.es_properties.end());
+    }
+
+    // Per-range shard-specific properties (override per-node if same key)
+    if (_range.__isset.table_format_params && _range.table_format_params.__isset.es_params) {
+        for (const auto& [key, value] : _range.table_format_params.es_params) {
+            properties[key] = value;
+        }
+    }
+
+    // Set batch_size from runtime state
+    properties[ESScanReader::KEY_BATCH_SIZE] = std::to_string(_state->batch_size());
+
+    // Extract docvalue and fields context
+    if (_params.__isset.es_docvalue_context) {
+        _docvalue_context = _params.es_docvalue_context;
+    }
+    if (_params.__isset.es_fields_context) {
+        _fields_context = _params.es_fields_context;
+    }
+
+    // Build column names for query DSL
+    std::vector<std::string> column_names;
+    for (const auto* slot_desc : _tuple_desc->slots()) {
+        column_names.push_back(slot_desc->col_name());
+    }
+
+    // Build the final query body using ESScrollQueryBuilder
+    properties[ESScanReader::KEY_QUERY] = ESScrollQueryBuilder::build(
+            properties, column_names, _docvalue_context, &_doc_value_mode);
+
+    // Select best host from es_hosts list, preferring localhost for locality
+    std::string target_host = _select_host(properties);
+    properties[ESScanReader::KEY_HOST_PORT] = target_host;
+    _es_reader = std::make_unique<ESScanReader>(target_host, properties, _doc_value_mode);
+
+    {
+        SCOPED_RAW_TIMER(&_read_timer_ns);
+        RETURN_IF_ERROR(_es_reader->open());
+    }
+    return Status::OK();
+}
+
+Status EsHttpReader::_do_get_next_block(Block* block, size_t* read_rows, bool* eof) {
+    if (_es_eof) {
+        *eof = true;
+        *read_rows = 0;
+        return Status::OK();
+    }
+
+    auto column_size = _tuple_desc->slots().size();
+    std::vector<MutableColumnPtr> columns(column_size);
+    for (size_t i = 0; i < column_size; i++) {
+        columns[i] = block->get_by_position(i).column->assume_mutable();
+    }
+
+    size_t rows_before = columns[0]->size();
+    const int batch_size = _state->batch_size();
+
+    while (columns[0]->size() - rows_before < batch_size && !_es_eof) {
+        RETURN_IF_CANCELLED(_state);
+
+        if (_line_eof && _batch_eof) {
+            _es_eof = true;
+            break;
+        }
+
+        while (!_batch_eof) {
+            if (_line_eof || _es_scroll_parser == nullptr) {
+                RETURN_IF_ERROR(_scroll_and_parse());
+                if (_batch_eof) {
+                    _es_eof = true;
+                    break;
+                }
+            }
+
+            {
+                SCOPED_RAW_TIMER(&_materialize_timer_ns);
+                RETURN_IF_ERROR(_es_scroll_parser->fill_columns(_tuple_desc, columns, &_line_eof,
+                                                                _docvalue_context,
+                                                                _state->timezone_obj()));
+            }
+            if (!_line_eof) {
+                break;
+            }
+        }
+    }
+
+    *read_rows = columns[0]->size() - rows_before;
+    _rows_read += *read_rows;
+    *eof = _es_eof && *read_rows == 0;
+    return Status::OK();
+}
+
+Status EsHttpReader::_scroll_and_parse() {
+    {
+        SCOPED_RAW_TIMER(&_read_timer_ns);
+        RETURN_IF_ERROR(_es_reader->get_next(&_batch_eof, _es_scroll_parser));
+    }
+    if (!_batch_eof) {
+        ++_batches_read;
+    }
+    _line_eof = false;
+    return Status::OK();
+}
+
+void EsHttpReader::_collect_profile_before_close() {
+    if (_profile == nullptr) {
+        return;
+    }
+    COUNTER_UPDATE(_es_profile.read_time, _read_timer_ns);
+    COUNTER_UPDATE(_es_profile.materialize_time, _materialize_timer_ns);
+    COUNTER_UPDATE(_es_profile.batches_read, _batches_read);
+    COUNTER_UPDATE(_es_profile.rows_read, _rows_read);
+}
+
+Status EsHttpReader::close() {
+    if (_es_reader) {
+        RETURN_IF_ERROR(_es_reader->close());
+    }
+    return Status::OK();
+}
+
+Status EsHttpReader::_get_columns_impl(std::unordered_map<std::string, DataTypePtr>* name_to_type) {
+    for (const auto* slot : _file_slot_descs) {
+        name_to_type->emplace(slot->col_name(), slot->type());
+    }
+    return Status::OK();
+}
+
+std::string EsHttpReader::_select_host(const std::map<std::string, std::string>& properties) const {
+    // If es_hosts contains multiple hosts, prefer localhost for locality
+    auto it = properties.find(KEY_ES_HOSTS);
+    if (it != properties.end() && !it->second.empty()) {
+        std::string localhost = BackendOptions::get_localhost();
+        std::string best;
+        std::istringstream stream(it->second);
+        std::string host;
+        while (std::getline(stream, host, ',')) {
+            if (best.empty()) {
+                best = host;
+            }
+            std::string hostname = _extract_hostname(host);
+            if (hostname == localhost) {
+                return host;
+            }
+        }
+        if (!best.empty()) {
+            return best;
+        }
+    }
+    // Fallback to host_port
+    auto hp = properties.find(ESScanReader::KEY_HOST_PORT);
+    if (hp != properties.end()) {
+        return hp->second;
+    }
+    return "";
+}
+
+} // namespace doris
diff --git a/be/src/format/table/es/es_http_reader.h b/be/src/format/table/es/es_http_reader.h
new file mode 100644
index 00000000000..7b4df7c926e
--- /dev/null
+++ b/be/src/format/table/es/es_http_reader.h
@@ -0,0 +1,101 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+#include <cstdint>
+#include <map>
+#include <memory>
+#include <string>
+#include <unordered_map>
+#include <vector>
+
+#include "common/factory_creator.h"
+#include "common/status.h"
+#include "format/generic_reader.h"
+#include "runtime/runtime_profile.h"
+
+namespace doris {
+
+class ESScanReader;
+class ScrollParser;
+class RuntimeState;
+class SlotDescriptor;
+class TupleDescriptor;
+class TFileRangeDesc;
+class TFileScanRangeParams;
+
+class EsHttpReader : public GenericReader {
+    ENABLE_FACTORY_CREATOR(EsHttpReader);
+
+public:
+    EsHttpReader(const std::vector<SlotDescriptor*>& file_slot_descs, RuntimeState* state,
+                 RuntimeProfile* profile, const TFileRangeDesc& range,
+                 const TFileScanRangeParams& params, const TupleDescriptor* tuple_desc);
+
+    ~EsHttpReader() override;
+
+    Status init_reader();
+
+    Status _do_get_next_block(Block* block, size_t* read_rows, bool* eof) override;
+
+    Status close() override;
+
+    Status _get_columns_impl(std::unordered_map<std::string, DataTypePtr>* name_to_type) override;
+
+private:
+    struct EsProfile {
+        RuntimeProfile::Counter* read_time = nullptr;
+        RuntimeProfile::Counter* materialize_time = nullptr;
+        RuntimeProfile::Counter* batches_read = nullptr;
+        RuntimeProfile::Counter* rows_read = nullptr;
+    };
+
+    static std::string _extract_hostname(std::string host);
+    void _init_profile();
+    void _collect_profile_before_close() override;
+    Status _scroll_and_parse();
+    std::string _select_host(const std::map<std::string, std::string>& properties) const;
+
+    static const std::string KEY_ES_HOSTS;
+
+    RuntimeState* _state;
+    RuntimeProfile* _profile;
+    const TupleDescriptor* _tuple_desc;
+    const TFileRangeDesc& _range;
+    const TFileScanRangeParams& _params;
+    const std::vector<SlotDescriptor*>& _file_slot_descs;
+    EsProfile _es_profile;
+
+    int64_t _read_timer_ns = 0;
+    int64_t _materialize_timer_ns = 0;
+    int64_t _batches_read = 0;
+    int64_t _rows_read = 0;
+
+    std::map<std::string, std::string> _docvalue_context;
+    std::map<std::string, std::string> _fields_context;
+    bool _doc_value_mode = false;
+
+    std::unique_ptr<ESScanReader> _es_reader;
+    std::unique_ptr<ScrollParser> _es_scroll_parser;
+
+    bool _es_eof = false;
+    bool _line_eof = true;
+    bool _batch_eof = false;
+};
+
+} // namespace doris
diff --git a/be/src/exec/es/es_scan_reader.cpp b/be/src/format/table/es/es_scan_reader.cpp
similarity index 98%
rename from be/src/exec/es/es_scan_reader.cpp
rename to be/src/format/table/es/es_scan_reader.cpp
index 18ffade1c29..037a3535296 100644
--- a/be/src/exec/es/es_scan_reader.cpp
+++ b/be/src/format/table/es/es_scan_reader.cpp
@@ -15,7 +15,7 @@
 // specific language governing permissions and limitations
 // under the License.
 
-#include "exec/es/es_scan_reader.h"
+#include "format/table/es/es_scan_reader.h"
 
 #include <stdlib.h>
 
@@ -26,8 +26,8 @@
 #include "common/config.h"
 #include "common/logging.h"
 #include "common/status.h"
-#include "exec/es/es_scroll_parser.h"
-#include "exec/es/es_scroll_query.h"
+#include "format/table/es/es_scroll_parser.h"
+#include "format/table/es/es_scroll_query.h"
 #include "service/http/http_method.h"
 
 namespace doris {
diff --git a/be/src/exec/es/es_scan_reader.h b/be/src/format/table/es/es_scan_reader.h
similarity index 100%
rename from be/src/exec/es/es_scan_reader.h
rename to be/src/format/table/es/es_scan_reader.h
diff --git a/be/src/exec/es/es_scroll_parser.cpp b/be/src/format/table/es/es_scroll_parser.cpp
similarity index 99%
rename from be/src/exec/es/es_scroll_parser.cpp
rename to be/src/format/table/es/es_scroll_parser.cpp
index 461802d52fd..6f27c721a69 100644
--- a/be/src/exec/es/es_scroll_parser.cpp
+++ b/be/src/format/table/es/es_scroll_parser.cpp
@@ -15,7 +15,7 @@
 // specific language governing permissions and limitations
 // under the License.
 
-#include "exec/es/es_scroll_parser.h"
+#include "format/table/es/es_scroll_parser.h"
 
 #include <absl/strings/substitute.h>
 #include <cctz/time_zone.h>
diff --git a/be/src/exec/es/es_scroll_parser.h b/be/src/format/table/es/es_scroll_parser.h
similarity index 100%
rename from be/src/exec/es/es_scroll_parser.h
rename to be/src/format/table/es/es_scroll_parser.h
diff --git a/be/src/exec/es/es_scroll_query.cpp b/be/src/format/table/es/es_scroll_query.cpp
similarity index 98%
rename from be/src/exec/es/es_scroll_query.cpp
rename to be/src/format/table/es/es_scroll_query.cpp
index fc89341239f..380357dd608 100644
--- a/be/src/exec/es/es_scroll_query.cpp
+++ b/be/src/format/table/es/es_scroll_query.cpp
@@ -15,7 +15,7 @@
 // specific language governing permissions and limitations
 // under the License.
 
-#include "exec/es/es_scroll_query.h"
+#include "format/table/es/es_scroll_query.h"
 
 #include <glog/logging.h>
 #include <rapidjson/encodings.h>
@@ -24,7 +24,7 @@
 
 #include <sstream>
 
-#include "exec/es/es_scan_reader.h"
+#include "format/table/es/es_scan_reader.h"
 #include "rapidjson/document.h"
 #include "rapidjson/stringbuffer.h"
 #include "rapidjson/writer.h"
diff --git a/be/src/exec/es/es_scroll_query.h b/be/src/format/table/es/es_scroll_query.h
similarity index 100%
rename from be/src/exec/es/es_scroll_query.h
rename to be/src/format/table/es/es_scroll_query.h
diff --git a/be/test/format/table/es_http_reader_test.cpp b/be/test/format/table/es_http_reader_test.cpp
new file mode 100644
index 00000000000..c3d43a09609
--- /dev/null
+++ b/be/test/format/table/es_http_reader_test.cpp
@@ -0,0 +1,72 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "format/table/es/es_http_reader.h"
+
+#include <gtest/gtest.h>
+
+#include <vector>
+
+#include "runtime/runtime_profile.h"
+
+namespace doris {
+
+class EsHttpReaderTest : public testing::Test {
+protected:
+    std::vector<SlotDescriptor*> file_slot_descs;
+    TFileRangeDesc range;
+    TFileScanRangeParams params;
+};
+
+TEST_F(EsHttpReaderTest, RegistersProfileCounters) {
+    RuntimeProfile profile("es_http_reader_test");
+    EsHttpReader reader(file_slot_descs, nullptr, &profile, range, params, nullptr);
+
+    reader.collect_profile_before_close();
+
+    auto* es_reader = profile.get_counter("EsHttpReader");
+    auto* read_time = profile.get_counter("EsReadTime");
+    auto* materialize_time = profile.get_counter("EsMaterializeTime");
+    auto* batches_read = profile.get_counter("EsBatchesRead");
+    auto* rows_read = profile.get_counter("EsRowsRead");
+
+    ASSERT_NE(es_reader, nullptr);
+    ASSERT_NE(read_time, nullptr);
+    ASSERT_NE(materialize_time, nullptr);
+    ASSERT_NE(batches_read, nullptr);
+    ASSERT_NE(rows_read, nullptr);
+    EXPECT_EQ(read_time->value(), 0);
+    EXPECT_EQ(materialize_time->value(), 0);
+    EXPECT_EQ(batches_read->value(), 0);
+    EXPECT_EQ(rows_read->value(), 0);
+}
+
+TEST_F(EsHttpReaderTest, NullProfileIsSafe) {
+    EsHttpReader reader(file_slot_descs, nullptr, nullptr, range, params, nullptr);
+    reader.collect_profile_before_close();
+    SUCCEED();
+}
+
+TEST_F(EsHttpReaderTest, ExtractHostnameHandlesIpv4AndIpv6) {
+    EXPECT_EQ("10.0.0.1", EsHttpReader::_extract_hostname("10.0.0.1:9200"));
+    EXPECT_EQ("::1", EsHttpReader::_extract_hostname("[::1]:9200"));
+    EXPECT_EQ("::1", EsHttpReader::_extract_hostname("http://[::1]:9200"));
+    EXPECT_EQ("fd00::1", EsHttpReader::_extract_hostname("[fd00::1]:9200"));
+    EXPECT_EQ("fd00::1", EsHttpReader::_extract_hostname("fd00::1:9200"));
+}
+
+} // namespace doris
diff --git a/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanPlanProvider.java b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanPlanProvider.java
index 6ceab21809c..fdb483f25cb 100644
--- a/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanPlanProvider.java
+++ b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanPlanProvider.java
@@ -21,6 +21,7 @@ import org.apache.doris.connector.api.ConnectorSession;
 import org.apache.doris.connector.api.handle.ConnectorColumnHandle;
 import org.apache.doris.connector.api.handle.ConnectorTableHandle;
 import org.apache.doris.connector.api.pushdown.ConnectorExpression;
+import org.apache.doris.thrift.TFileScanRangeParams;
 
 import java.util.Collections;
 import java.util.List;
@@ -41,8 +42,7 @@ public interface ConnectorScanPlanProvider {
      *
      * <p>The engine uses this to determine which Thrift scan range structure
      * to generate. For example, {@link ConnectorScanRangeType#FILE_SCAN}
-     * produces TFileScanRange, while {@link ConnectorScanRangeType#ES_SCAN}
-     * produces TEsScanRange.</p>
+     * produces TFileScanRange.</p>
      *
      * @return the scan range type (default: FILE_SCAN)
      */
@@ -121,4 +121,76 @@ public interface ConnectorScanPlanProvider {
             ConnectorTableHandle handle) {
         return -1;
     }
+
+    /**
+     * Returns scan-node-level properties along with filter pushdown results.
+     *
+     * <p>Override this when the connector performs fine-grained conjunct pushdown
+     * (e.g., ES query DSL building) and needs to report which conjuncts
+     * were NOT pushed. The indices in {@link ScanNodePropertiesResult#getNotPushedConjunctIndices()}
+     * refer to the AND children of the filter expression, in the same order as
+     * the conjuncts list.</p>
+     *
+     * <p>The default wraps {@link #getScanNodeProperties} with an empty not-pushed set,
+     * meaning all conjuncts are assumed to have been pushed.</p>
+     *
+     * @param session the current session
+     * @param handle  the table handle (may have been updated by applyFilter)
+     * @param columns the columns to read
+     * @param filter  an optional remaining filter expression
+     * @return properties with filter pushdown metadata
+     */
+    default ScanNodePropertiesResult getScanNodePropertiesResult(
+            ConnectorSession session,
+            ConnectorTableHandle handle,
+            List<ConnectorColumnHandle> columns,
+            Optional<ConnectorExpression> filter) {
+        return new ScanNodePropertiesResult(
+                getScanNodeProperties(session, handle, columns, filter));
+    }
+
+    /**
+     * Populates scan-level Thrift params that apply to all scan ranges.
+     * Called once after all ranges are distributed.
+     *
+     * <p>Connectors that need to set fields on TFileScanRangeParams
+     * (e.g., Paimon predicate, ES docvalue context) override this method.</p>
+     *
+     * @param params         the TFileScanRangeParams to populate
+     * @param nodeProperties the scan node properties from getScanNodeProperties()
+     */
+    default void populateScanLevelParams(TFileScanRangeParams params,
+            Map<String, String> nodeProperties) {
+        // Default: no scan-level params needed
+    }
+
+    /**
+     * Appends connector-specific EXPLAIN output.
+     * Called after the generic TABLE/QUERY/PREDICATES lines.
+     *
+     * <p>Each connector decides its own EXPLAIN format. For example, ES
+     * appends "ES index/type" and "REMOTE_PREDICATES" lines.</p>
+     *
+     * @param output         the StringBuilder to append to
+     * @param prefix         the indentation prefix for this explain level
+     * @param nodeProperties the scan node properties
+     */
+    default void appendExplainInfo(StringBuilder output,
+            String prefix, Map<String, String> nodeProperties) {
+        // Default: no extra EXPLAIN info
+    }
+
+    /**
+     * Returns the serialized table representation for this connector,
+     * or {@code null} if not applicable.
+     *
+     * <p>Currently used by Paimon to pass the serialized Paimon Table
+     * object to BE for JNI-based reading.</p>
+     *
+     * @param nodeProperties the scan node properties
+     * @return serialized table string, or null
+     */
+    default String getSerializedTable(Map<String, String> nodeProperties) {
+        return null;
+    }
 }
diff --git a/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRange.java b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRange.java
index 8392d901662..2bab45080b2 100644
--- a/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRange.java
+++ b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRange.java
@@ -17,8 +17,12 @@
 
 package org.apache.doris.connector.api.scan;
 
+import org.apache.doris.thrift.TFileRangeDesc;
+import org.apache.doris.thrift.TTableFormatFileDesc;
+
 import java.io.Serializable;
 import java.util.Collections;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -108,4 +112,30 @@ public interface ConnectorScanRange extends Serializable {
     default List<ConnectorDeleteFile> getDeleteFiles() {
         return Collections.emptyList();
     }
+
+    /**
+     * Populates per-range Thrift params from this scan range's data.
+     *
+     * <p>Connectors that need typed Thrift structs (e.g., Hudi, Paimon)
+     * override this to construct their format-specific Thrift descriptor.
+     * The default implementation puts all properties into the generic
+     * {@code jdbc_params} map, which is suitable for JNI-based readers
+     * and simple formats.</p>
+     *
+     * @param formatDesc the TTableFormatFileDesc to populate with format-specific data
+     * @param rangeDesc  the TFileRangeDesc, may be mutated for format downgrade
+     */
+    default void populateRangeParams(TTableFormatFileDesc formatDesc,
+            TFileRangeDesc rangeDesc) {
+        Map<String, String> props = new HashMap<>(getProperties());
+        props.put("connector_scan_range_type", getRangeType().name());
+        props.put("connector_file_format", getFileFormat());
+        Map<String, String> partValues = getPartitionValues();
+        if (partValues != null && !partValues.isEmpty()) {
+            for (Map.Entry<String, String> entry : partValues.entrySet()) {
+                props.put("partition." + entry.getKey(), entry.getValue());
+            }
+        }
+        formatDesc.setJdbcParams(props);
+    }
 }
diff --git a/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRangeType.java b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRangeType.java
index 38f69adf351..c0133527750 100644
--- a/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRangeType.java
+++ b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ConnectorScanRangeType.java
@@ -25,9 +25,8 @@ package org.apache.doris.connector.api.scan;
  * execution layer. Connectors choose the appropriate type based on
  * their data access pattern:</p>
  * <ul>
- *   <li>{@link #FILE_SCAN} — for file-based connectors (Hive, Iceberg, Paimon, Hudi)</li>
+ *   <li>{@link #FILE_SCAN} — for file-based connectors (Hive, Iceberg, Paimon, Hudi, Elasticsearch)</li>
  *   <li>{@link #JDBC_SCAN} — for JDBC connectors</li>
- *   <li>{@link #ES_SCAN} — for Elasticsearch connectors</li>
  *   <li>{@link #REMOTE_OLAP_SCAN} — for remote Doris/OLAP federation</li>
  *   <li>{@link #CUSTOM} — for connectors with custom scan patterns</li>
  * </ul>
@@ -40,9 +39,6 @@ public enum ConnectorScanRangeType {
     /** JDBC scan: connection info + SQL query. */
     JDBC_SCAN,
 
-    /** Elasticsearch scan: shard routing + search context. */
-    ES_SCAN,
-
     /** Remote OLAP scan: tablet info for Doris federation. */
     REMOTE_OLAP_SCAN,
 
diff --git a/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ScanNodePropertiesResult.java b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ScanNodePropertiesResult.java
new file mode 100644
index 00000000000..21a36ef4bef
--- /dev/null
+++ b/fe/fe-connector/fe-connector-api/src/main/java/org/apache/doris/connector/api/scan/ScanNodePropertiesResult.java
@@ -0,0 +1,86 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.connector.api.scan;
+
+import java.util.Collections;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * Encapsulates scan-node-level properties along with filter pushdown metadata.
+ *
+ * <p>Connectors that perform fine-grained conjunct pushdown (e.g., ES query DSL
+ * building) return this from {@link ConnectorScanPlanProvider#getScanNodePropertiesResult}
+ * to communicate both the scan properties and which conjuncts were NOT pushed down.</p>
+ *
+ * <p>The {@code notPushedConjunctIndices} set contains 0-based indices into the
+ * AND children of the filter expression, in the same order as the conjuncts list.
+ * Conjuncts whose indices are NOT in this set were successfully pushed down and
+ * will be pruned from the scan node's conjunct list by the engine.</p>
+ */
+public class ScanNodePropertiesResult {
+
+    private final Map<String, String> properties;
+    private final Set<Integer> notPushedConjunctIndices;
+    private final boolean hasConjunctTracking;
+
+    /**
+     * Creates a result where no fine-grained conjunct tracking is provided.
+     * The engine will NOT prune any conjuncts.
+     */
+    public ScanNodePropertiesResult(Map<String, String> properties) {
+        this.properties = properties;
+        this.notPushedConjunctIndices = null;
+        this.hasConjunctTracking = false;
+    }
+
+    /**
+     * Creates a result with explicit not-pushed conjunct tracking.
+     * An empty set means ALL conjuncts were pushed down and should be pruned.
+     *
+     * @param properties              scan-node-level properties
+     * @param notPushedConjunctIndices indices of conjuncts that were NOT pushed down;
+     *                                 empty set means all were pushed
+     */
+    public ScanNodePropertiesResult(Map<String, String> properties,
+            Set<Integer> notPushedConjunctIndices) {
+        this.properties = properties;
+        this.notPushedConjunctIndices = notPushedConjunctIndices;
+        this.hasConjunctTracking = true;
+    }
+
+    public Map<String, String> getProperties() {
+        return properties;
+    }
+
+    /**
+     * Returns indices of conjuncts NOT pushed down, or empty set if all pushed.
+     * Only valid when {@link #hasConjunctTracking()} is true.
+     */
+    public Set<Integer> getNotPushedConjunctIndices() {
+        return notPushedConjunctIndices != null ? notPushedConjunctIndices : Collections.emptySet();
+    }
+
+    /**
+     * Returns true if this result carries conjunct pushdown tracking.
+     * False means no tracking — the engine should keep all conjuncts.
+     */
+    public boolean hasConjunctTracking() {
+        return hasConjunctTracking;
+    }
+}
diff --git a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsConnectorMetadata.java b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsConnectorMetadata.java
index 63098307d12..7f62f14aa7b 100644
--- a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsConnectorMetadata.java
+++ b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsConnectorMetadata.java
@@ -22,10 +22,13 @@ import org.apache.doris.connector.api.ConnectorMetadata;
 import org.apache.doris.connector.api.ConnectorSession;
 import org.apache.doris.connector.api.ConnectorTableSchema;
 import org.apache.doris.connector.api.DorisConnectorException;
+import org.apache.doris.connector.api.handle.ConnectorColumnHandle;
 import org.apache.doris.connector.api.handle.ConnectorTableHandle;
+import org.apache.doris.connector.api.handle.NamedColumnHandle;
 
 import java.util.ArrayList;
 import java.util.Collections;
+import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -90,6 +93,18 @@ public class EsConnectorMetadata implements ConnectorMetadata {
                 Collections.emptyMap());
     }
 
+    @Override
+    public Map<String, ConnectorColumnHandle> getColumnHandles(
+            ConnectorSession session, ConnectorTableHandle handle) {
+        ConnectorTableSchema schema = getTableSchema(session, handle);
+        List<ConnectorColumn> columns = schema.getColumns();
+        Map<String, ConnectorColumnHandle> handles = new LinkedHashMap<>(columns.size());
+        for (ConnectorColumn col : columns) {
+            handles.put(col.getName(), new NamedColumnHandle(col.getName()));
+        }
+        return handles;
+    }
+
     /**
      * Validates that required properties are present.
      * Called during connector creation.
diff --git a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsHostAddress.java b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsHostAddress.java
new file mode 100644
index 00000000000..91b9ff1685e
--- /dev/null
+++ b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsHostAddress.java
@@ -0,0 +1,104 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.connector.es;
+
+final class EsHostAddress {
+
+    private EsHostAddress() {
+    }
+
+    static ParsedAddress parse(String address, int defaultPort) {
+        String normalized = normalize(address);
+        if (normalized.startsWith("[")) {
+            int bracketEnd = normalized.indexOf(']');
+            if (bracketEnd < 0) {
+                throw new IllegalArgumentException("Invalid bracketed ES address: " + address);
+            }
+            String host = normalized.substring(1, bracketEnd);
+            if (bracketEnd + 1 >= normalized.length()) {
+                return new ParsedAddress(host, defaultPort);
+            }
+            if (normalized.charAt(bracketEnd + 1) != ':') {
+                throw new IllegalArgumentException("Invalid bracketed ES address: " + address);
+            }
+            return new ParsedAddress(host, Integer.parseInt(normalized.substring(bracketEnd + 2)));
+        }
+
+        int lastColon = normalized.lastIndexOf(':');
+        if (lastColon < 0) {
+            return new ParsedAddress(normalized, defaultPort);
+        }
+
+        String portPart = normalized.substring(lastColon + 1);
+        if (!portPart.isEmpty() && portPart.chars().allMatch(Character::isDigit)) {
+            return new ParsedAddress(normalized.substring(0, lastColon), Integer.parseInt(portPart));
+        }
+        return new ParsedAddress(normalized, defaultPort);
+    }
+
+    static String extractHostname(String address) {
+        return parse(address, -1).getHost();
+    }
+
+    static String extractSchemePrefix(String address) {
+        int schemeEnd = address.indexOf("://");
+        return schemeEnd >= 0 ? address.substring(0, schemeEnd + 3) : "";
+    }
+
+    static String formatHostPort(String host, int port) {
+        String prefix = "";
+        String bareHost = host;
+        String schemePrefix = extractSchemePrefix(host);
+        if (!schemePrefix.isEmpty()) {
+            prefix = schemePrefix;
+            bareHost = host.substring(prefix.length());
+        }
+        if (bareHost.contains(":") && !bareHost.startsWith("[")) {
+            bareHost = "[" + bareHost + "]";
+        }
+        return prefix + bareHost + ":" + port;
+    }
+
+    private static String normalize(String address) {
+        int schemeEnd = address.indexOf("://");
+        String normalized = schemeEnd >= 0 ? address.substring(schemeEnd + 3) : address;
+        int pathIdx = normalized.indexOf('/');
+        if (pathIdx >= 0) {
+            normalized = normalized.substring(0, pathIdx);
+        }
+        return normalized;
+    }
+
+    static final class ParsedAddress {
+        private final String host;
+        private final int port;
+
+        private ParsedAddress(String host, int port) {
+            this.host = host;
+            this.port = port;
+        }
+
+        String getHost() {
+            return host;
+        }
+
+        int getPort() {
+            return port;
+        }
+    }
+}
diff --git a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsNodeInfo.java b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsNodeInfo.java
index c2d07852145..db420afa331 100644
--- a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsNodeInfo.java
+++ b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsNodeInfo.java
@@ -75,9 +75,9 @@ public class EsNodeInfo {
             String address = (String) httpMap.get("publish_address");
             if (address != null) {
                 address = address.substring(address.lastIndexOf('/') + 1);
-                String[] scratch = address.split(":");
-                this.publishHost = (httpSslEnabled ? "https://" : "") + scratch[0];
-                this.publishPort = Integer.parseInt(scratch[1]);
+                EsHostAddress.ParsedAddress parsed = EsHostAddress.parse(address, -1);
+                this.publishHost = (httpSslEnabled ? "https://" : "") + parsed.getHost();
+                this.publishPort = parsed.getPort();
                 this.hasHttp = true;
             } else {
                 this.hasHttp = false;
@@ -92,30 +92,10 @@ public class EsNodeInfo {
      */
     public EsNodeInfo(String id, String seed) {
         this.id = id;
-        String[] scratch = seed.split(":");
-        String remoteHost;
-        int port;
-        if (scratch.length == 3) {
-            // "http://host:port" or "https://host:port"
-            String portStr = scratch[2];
-            if (portStr.contains("/")) {
-                portStr = portStr.substring(0, portStr.indexOf('/'));
-            }
-            port = Integer.parseInt(portStr);
-            remoteHost = scratch[0] + ":" + scratch[1];
-        } else if (scratch.length == 2) {
-            // "host:port" (no scheme)
-            String portStr = scratch[1];
-            if (portStr.contains("/")) {
-                portStr = portStr.substring(0, portStr.indexOf('/'));
-            }
-            port = Integer.parseInt(portStr);
-            remoteHost = scratch[0];
-        } else {
-            // "host" only
-            port = 80;
-            remoteHost = seed;
-        }
+        String schemePrefix = EsHostAddress.extractSchemePrefix(seed);
+        EsHostAddress.ParsedAddress parsed = EsHostAddress.parse(seed, 80);
+        String remoteHost = schemePrefix + parsed.getHost();
+        int port = parsed.getPort();
         this.name = remoteHost;
         this.host = remoteHost;
         this.ip = remoteHost;
@@ -165,7 +145,7 @@ public class EsNodeInfo {
 
     /** Returns "host:port" string for convenience. */
     public String getPublishAddress() {
-        return publishHost + ":" + publishPort;
+        return EsHostAddress.formatHostPort(publishHost, publishPort);
     }
 
     @Override
@@ -209,7 +189,7 @@ public class EsNodeInfo {
                 + ", name='" + name + '\''
                 + ", host='" + host + '\''
                 + ", ip='" + ip + '\''
-                + ", publishAddress=" + publishHost + ":" + publishPort
+                + ", publishAddress=" + getPublishAddress()
                 + ", hasHttp=" + hasHttp
                 + ", isClient=" + isClient
                 + ", isData=" + isData
diff --git a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanPlanProvider.java b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanPlanProvider.java
index 8595fa0aef5..7b7607752ed 100644
--- a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanPlanProvider.java
+++ b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanPlanProvider.java
@@ -25,8 +25,11 @@ import org.apache.doris.connector.api.pushdown.ConnectorExpression;
 import org.apache.doris.connector.api.scan.ConnectorScanPlanProvider;
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
 import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
+import org.apache.doris.connector.api.scan.ScanNodePropertiesResult;
+import org.apache.doris.thrift.TFileScanRangeParams;
 
 import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
@@ -34,11 +37,11 @@ import org.apache.logging.log4j.Logger;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
 
 /**
  * ES scan plan provider — generates shard-level scan ranges and node-level properties.
@@ -58,12 +61,6 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
 
     private static final Logger LOG = LogManager.getLogger(EsScanPlanProvider.class);
 
-    // Cache TTL: metadata is shared within a single query planning cycle
-    // (planScan and getScanNodeProperties are called in rapid succession).
-    // 10 seconds avoids redundant REST calls without serving stale data
-    // across different queries.
-    static final long METADATA_CACHE_TTL_MS = 10_000;
-
     private static final ObjectMapper JSON_MAPPER = new ObjectMapper();
 
     public static final String PROP_QUERY_DSL = "query_dsl";
@@ -71,29 +68,13 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
     public static final String PROP_PASSWORD = "password";
     public static final String PROP_HTTP_SSL_ENABLED = "http_ssl_enabled";
     public static final String PROP_DOC_VALUES_MODE = "doc_values_mode";
-    public static final String PROP_NOT_PUSHED_INDICES = "_not_pushed_conjunct_indices";
+    public static final String PROP_ES_INDEX = "_es_index";
 
     public static final String PROP_DOCVALUE_CONTEXT_JSON = "docvalue_context_json";
     public static final String PROP_FIELDS_CONTEXT_JSON = "fields_context_json";
 
     private final EsConnectorRestClient restClient;
     private final Map<String, String> properties;
-    private final ConcurrentHashMap<String, CachedMetadata> metadataCache = new ConcurrentHashMap<>();
-
-    /** Timestamped wrapper for cached metadata state. */
-    private static final class CachedMetadata {
-        final EsMetadataState state;
-        final long timestampMs;
-
-        CachedMetadata(EsMetadataState state) {
-            this.state = state;
-            this.timestampMs = System.currentTimeMillis();
-        }
-
-        boolean isExpired() {
-            return System.currentTimeMillis() - timestampMs > METADATA_CACHE_TTL_MS;
-        }
-    }
 
     public EsScanPlanProvider(EsConnectorRestClient restClient,
             Map<String, String> properties) {
@@ -103,7 +84,7 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
 
     @Override
     public ConnectorScanRangeType getScanRangeType() {
-        return ConnectorScanRangeType.ES_SCAN;
+        return ConnectorScanRangeType.FILE_SCAN;
     }
 
     @Override
@@ -146,7 +127,7 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
                 }
                 List<String> hosts = new ArrayList<>();
                 for (EsShardRouting routing : shardRouting) {
-                    hosts.add(routing.getHttpHost() + ":" + routing.getHttpPort());
+                    hosts.add(EsHostAddress.formatHostPort(routing.getHttpHost(), routing.getHttpPort()));
                 }
                 ranges.add(new EsScanRange(
                         shardRouting.get(0).getIndexName(),
@@ -168,14 +149,33 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
             ConnectorTableHandle handle,
             List<ConnectorColumnHandle> columns,
             Optional<ConnectorExpression> filter) {
+        return buildScanNodeProperties(handle, columns, filter).getProperties();
+    }
+
+    @Override
+    public ScanNodePropertiesResult getScanNodePropertiesResult(
+            ConnectorSession session,
+            ConnectorTableHandle handle,
+            List<ConnectorColumnHandle> columns,
+            Optional<ConnectorExpression> filter) {
+        return buildScanNodeProperties(handle, columns, filter);
+    }
+
+    private ScanNodePropertiesResult buildScanNodeProperties(
+            ConnectorTableHandle handle,
+            List<ConnectorColumnHandle> columns,
+            Optional<ConnectorExpression> filter) {
         EsTableHandle esHandle = (EsTableHandle) handle;
         EsMetadataState state = fetchMetadataState(esHandle, columns);
 
         Map<String, String> nodeProps = new HashMap<>();
 
+        // File format type for PluginDrivenScanNode.getFileFormatType()
+        nodeProps.put("file_format_type", "es_http");
+
         // Table/index metadata for EXPLAIN
         nodeProps.put("_table_name", esHandle.getIndexName());
-        nodeProps.put("_es_index", esHandle.getIndexName());
+        nodeProps.put(PROP_ES_INDEX, esHandle.getIndexName());
 
         // Auth properties
         String user = properties.getOrDefault(EsConnectorProperties.USER, null);
@@ -194,18 +194,6 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
         EsQueryDslResult dslResult = buildQueryDsl(filter, state);
         nodeProps.put(PROP_QUERY_DSL, dslResult.getQueryDsl());
 
-        // Serialize not-pushed conjunct indices so the scan node can prune pushed conjuncts
-        if (!dslResult.getNotPushedIndices().isEmpty()) {
-            StringBuilder sb = new StringBuilder();
-            for (int i = 0; i < dslResult.getNotPushedIndices().size(); i++) {
-                if (i > 0) {
-                    sb.append(",");
-                }
-                sb.append(dslResult.getNotPushedIndices().get(i));
-            }
-            nodeProps.put(PROP_NOT_PUSHED_INDICES, sb.toString());
-        }
-
         // Doc values mode — two-gate check matching old EsScanNode.useDocValueScan():
         // Gate 1: selected field count must not exceed maxDocValueFields
         // Gate 2: every selected field must exist in the docValueFieldsContext map
@@ -216,7 +204,10 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
         // so we don't need the ES-specific getScanNodeMapProperties() on the generic SPI.
         serializeFieldContexts(state, nodeProps);
 
-        return nodeProps;
+        // Build not-pushed conjunct indices set for structured reporting
+        Set<Integer> notPushedSet = new HashSet<>(dslResult.getNotPushedIndices());
+
+        return new ScanNodePropertiesResult(nodeProps, notPushedSet);
     }
 
     private void serializeFieldContexts(EsMetadataState state, Map<String, String> nodeProps) {
@@ -282,13 +273,12 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
     private EsMetadataState fetchMetadataState(EsTableHandle handle,
             List<ConnectorColumnHandle> columns) {
         String indexName = handle.getIndexName();
-        CachedMetadata cached = metadataCache.get(indexName);
-        if (cached != null && !cached.isExpired()) {
-            return cached.state;
-        }
-
         List<String> columnNames = new ArrayList<>();
-        // Column names not strictly needed for scan planning but useful for field context
+        for (ConnectorColumnHandle col : columns) {
+            if (col instanceof NamedColumnHandle) {
+                columnNames.add(((NamedColumnHandle) col).getName());
+            }
+        }
         String mappingType = properties.getOrDefault(
                 EsConnectorProperties.MAPPING_TYPE, null);
         boolean nodesDiscovery = Boolean.parseBoolean(properties.getOrDefault(
@@ -300,19 +290,7 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
         EsMetadataState state = new EsMetadataState(
                 indexName, mappingType, columnNames, nodesDiscovery, seeds);
         EsMetadataFetcher fetcher = new EsMetadataFetcher(restClient, state);
-        EsMetadataState result = fetcher.fetch();
-        metadataCache.put(indexName, new CachedMetadata(result));
-        return result;
-    }
-
-    /** Visible for testing: returns the number of cached metadata entries. */
-    int metadataCacheSize() {
-        return metadataCache.size();
-    }
-
-    /** Visible for testing: clears the metadata cache. */
-    void clearMetadataCache() {
-        metadataCache.clear();
+        return fetcher.fetch();
     }
 
     /**
@@ -362,12 +340,98 @@ public class EsScanPlanProvider implements ConnectorScanPlanProvider {
         return 1;
     }
 
+    @Override
+    public void populateScanLevelParams(TFileScanRangeParams params,
+            Map<String, String> properties) {
+        // Build es_properties map from scan node properties
+        Map<String, String> esProperties = new HashMap<>();
+        copyIfPresent(properties, PROP_QUERY_DSL, esProperties);
+        copyIfPresent(properties, PROP_USER, esProperties);
+        copyIfPresent(properties, PROP_PASSWORD, esProperties);
+        copyIfPresent(properties, PROP_HTTP_SSL_ENABLED, esProperties);
+        copyIfPresent(properties, PROP_DOC_VALUES_MODE, esProperties);
+        params.setEsProperties(esProperties);
+
+        // Deserialize docvalue_context and fields_context from JSON
+        String docvalueJson = properties.get(PROP_DOCVALUE_CONTEXT_JSON);
+        if (docvalueJson != null && !docvalueJson.isEmpty()) {
+            try {
+                TypeReference<Map<String, String>> mapTypeRef =
+                        new TypeReference<Map<String, String>>() {};
+                Map<String, String> docCtx =
+                        JSON_MAPPER.readValue(docvalueJson, mapTypeRef);
+                params.setEsDocvalueContext(docCtx);
+            } catch (Exception e) {
+                LOG.warn("Failed to parse docvalue_context_json", e);
+            }
+        }
+
+        String fieldsJson = properties.get(PROP_FIELDS_CONTEXT_JSON);
+        if (fieldsJson != null && !fieldsJson.isEmpty()) {
+            try {
+                TypeReference<Map<String, String>> mapTypeRef =
+                        new TypeReference<Map<String, String>>() {};
+                Map<String, String> fieldsCtx =
+                        JSON_MAPPER.readValue(fieldsJson, mapTypeRef);
+                params.setEsFieldsContext(fieldsCtx);
+            } catch (Exception e) {
+                LOG.warn("Failed to parse fields_context_json", e);
+            }
+        }
+    }
+
+    private static void copyIfPresent(Map<String, String> src,
+            String key, Map<String, String> dst) {
+        String value = src.get(key);
+        if (value != null) {
+            dst.put(key, value);
+        }
+    }
+
+    @Override
+    public void appendExplainInfo(StringBuilder output, String prefix,
+            Map<String, String> properties) {
+        String indexName = properties.get(PROP_ES_INDEX);
+        if (indexName != null) {
+            output.append(prefix).append("ES index: ").append(indexName)
+                    .append("\n");
+        }
+        String docvalueJson = properties.get(PROP_DOCVALUE_CONTEXT_JSON);
+        if (docvalueJson != null && !docvalueJson.isEmpty()) {
+            try {
+                TypeReference<Map<String, String>> mapTypeRef =
+                        new TypeReference<Map<String, String>>() {};
+                Map<String, String> dvMap =
+                        JSON_MAPPER.readValue(docvalueJson, mapTypeRef);
+                output.append(prefix).append("ES doc-value fields: ")
+                        .append(dvMap.keySet()).append("\n");
+            } catch (Exception e) {
+                output.append(prefix).append("ES doc-value fields: ")
+                        .append("(parse error)").append("\n");
+            }
+        }
+        String fieldsJson = properties.get(PROP_FIELDS_CONTEXT_JSON);
+        if (fieldsJson != null && !fieldsJson.isEmpty()) {
+            try {
+                TypeReference<Map<String, String>> mapTypeRef =
+                        new TypeReference<Map<String, String>>() {};
+                Map<String, String> fMap =
+                        JSON_MAPPER.readValue(fieldsJson, mapTypeRef);
+                output.append(prefix).append("ES source fields: ")
+                        .append(fMap.keySet()).append("\n");
+            } catch (Exception e) {
+                output.append(prefix).append("ES source fields: ")
+                        .append("(parse error)").append("\n");
+            }
+        }
+    }
+
     private List<String> collectAllHosts(
             Map<Integer, List<EsShardRouting>> routingsMap) {
         List<String> hosts = new ArrayList<>();
         for (List<EsShardRouting> routings : routingsMap.values()) {
             for (EsShardRouting routing : routings) {
-                String addr = routing.getHttpHost() + ":" + routing.getHttpPort();
+                String addr = EsHostAddress.formatHostPort(routing.getHttpHost(), routing.getHttpPort());
                 if (!hosts.contains(addr)) {
                     hosts.add(addr);
                 }
diff --git a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanRange.java b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanRange.java
index e4cfef238e7..80fcab57729 100644
--- a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanRange.java
+++ b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsScanRange.java
@@ -19,6 +19,8 @@ package org.apache.doris.connector.es;
 
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
 import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
+import org.apache.doris.thrift.TFileRangeDesc;
+import org.apache.doris.thrift.TTableFormatFileDesc;
 
 import java.util.ArrayList;
 import java.util.Collections;
@@ -26,6 +28,7 @@ import java.util.HashMap;
 import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 
 /**
@@ -45,10 +48,11 @@ public class EsScanRange implements ConnectorScanRange {
 
     private static final long serialVersionUID = 1L;
 
-    public static final String PROP_INDEX = "es.index";
-    public static final String PROP_TYPE = "es.type";
-    public static final String PROP_SHARD_ID = "es.shard_id";
-    public static final String PROP_HOSTS = "es.hosts";
+    public static final String PROP_INDEX = "index";
+    public static final String PROP_TYPE = "type";
+    public static final String PROP_SHARD_ID = "shard_id";
+    public static final String PROP_HOST_PORT = "host_port";
+    public static final String PROP_ES_HOSTS = "es_hosts";
 
     private final String indexName;
     private final String mappingType;
@@ -69,7 +73,22 @@ public class EsScanRange implements ConnectorScanRange {
 
     @Override
     public ConnectorScanRangeType getRangeType() {
-        return ConnectorScanRangeType.ES_SCAN;
+        return ConnectorScanRangeType.FILE_SCAN;
+    }
+
+    @Override
+    public Optional<String> getPath() {
+        return Optional.of("es://" + indexName + "/" + shardId);
+    }
+
+    @Override
+    public String getTableFormatType() {
+        return "es";
+    }
+
+    @Override
+    public String getFileFormat() {
+        return "es_http";
     }
 
     /**
@@ -89,7 +108,10 @@ public class EsScanRange implements ConnectorScanRange {
             props.put(PROP_TYPE, mappingType);
         }
         props.put(PROP_SHARD_ID, String.valueOf(shardId));
-        props.put(PROP_HOSTS, String.join(",", esHosts));
+        if (!esHosts.isEmpty()) {
+            props.put(PROP_HOST_PORT, esHosts.get(0));
+            props.put(PROP_ES_HOSTS, String.join(",", esHosts));
+        }
         return props;
     }
 
@@ -116,17 +138,7 @@ public class EsScanRange implements ConnectorScanRange {
     static List<String> extractHostnames(List<String> hostPorts) {
         Set<String> seen = new LinkedHashSet<>();
         for (String hp : hostPorts) {
-            String s = hp;
-            // Strip scheme (http:// or https://)
-            int schemeEnd = s.indexOf("://");
-            if (schemeEnd >= 0) {
-                s = s.substring(schemeEnd + 3);
-            }
-            // Strip port
-            int colonIdx = s.lastIndexOf(':');
-            if (colonIdx > 0) {
-                s = s.substring(0, colonIdx);
-            }
+            String s = EsHostAddress.extractHostname(hp);
             if (!s.isEmpty()) {
                 seen.add(s);
             }
@@ -140,4 +152,10 @@ public class EsScanRange implements ConnectorScanRange {
                 + "', shard=" + shardId
                 + ", hosts=" + esHosts + "}";
     }
+
+    @Override
+    public void populateRangeParams(TTableFormatFileDesc formatDesc,
+            TFileRangeDesc rangeDesc) {
+        formatDesc.setEsParams(new HashMap<>(getProperties()));
+    }
 }
diff --git a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsShardRouting.java b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsShardRouting.java
index fdce42dde85..dda693a1048 100644
--- a/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsShardRouting.java
+++ b/fe/fe-connector/fe-connector-es/src/main/java/org/apache/doris/connector/es/EsShardRouting.java
@@ -59,7 +59,7 @@ public class EsShardRouting {
 
     /** Returns "host:port" string for convenience. */
     public String getHttpAddress() {
-        return httpHost + ":" + httpPort;
+        return EsHostAddress.formatHostPort(httpHost, httpPort);
     }
 
     public void setHttpAddress(String host, int port) {
@@ -77,7 +77,7 @@ public class EsShardRouting {
                 + "indexName='" + indexName + '\''
                 + ", shardId=" + shardId
                 + ", isPrimary=" + isPrimary
-                + ", httpAddress=" + httpHost + ":" + httpPort
+                + ", httpAddress=" + getHttpAddress()
                 + ", nodeId='" + nodeId + '\''
                 + '}';
     }
diff --git a/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsNodeInfoAndScanRangeTest.java b/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsNodeInfoAndScanRangeTest.java
index d1a3a0299e5..05ce8131862 100644
--- a/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsNodeInfoAndScanRangeTest.java
+++ b/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsNodeInfoAndScanRangeTest.java
@@ -24,6 +24,7 @@ import org.junit.jupiter.api.Test;
 
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.HashMap;
 import java.util.Map;
 
 class EsNodeInfoAndScanRangeTest {
@@ -69,6 +70,22 @@ class EsNodeInfoAndScanRangeTest {
         Assertions.assertEquals(9200, info.getPublishPort());
     }
 
+    @Test
+    void testSeedIpv6Bracketed() {
+        EsNodeInfo info = new EsNodeInfo("n6", "[::1]:9200");
+        Assertions.assertEquals("::1", info.getPublishHost());
+        Assertions.assertEquals(9200, info.getPublishPort());
+        Assertions.assertEquals("[::1]:9200", info.getPublishAddress());
+    }
+
+    @Test
+    void testSeedIpv6WithScheme() {
+        EsNodeInfo info = new EsNodeInfo("n7", "https://[::1]:9243");
+        Assertions.assertEquals("https://::1", info.getPublishHost());
+        Assertions.assertEquals(9243, info.getPublishPort());
+        Assertions.assertEquals("https://[::1]:9243", info.getPublishAddress());
+    }
+
     @Test
     void testSeedEquality() {
         EsNodeInfo a = new EsNodeInfo("n1", "host:9200");
@@ -84,6 +101,24 @@ class EsNodeInfoAndScanRangeTest {
         Assertions.assertNotEquals(a, b);
     }
 
+    @Test
+    void testNodesApiIpv6PublishAddress() {
+        Map<String, Object> http = new HashMap<>();
+        http.put("publish_address", "es-node/[::1]:9200");
+        Map<String, Object> node = new HashMap<>();
+        node.put("version", "8.12.0");
+        node.put("name", "es-node");
+        node.put("host", "es-node");
+        node.put("ip", "::1");
+        node.put("roles", Arrays.asList("data", "ingest"));
+        node.put("http", http);
+
+        EsNodeInfo info = new EsNodeInfo("node-ipv6", node, true);
+        Assertions.assertEquals("https://::1", info.getPublishHost());
+        Assertions.assertEquals(9200, info.getPublishPort());
+        Assertions.assertEquals("https://[::1]:9200", info.getPublishAddress());
+    }
+
     // === EsScanRange ===
 
     @Test
@@ -99,7 +134,7 @@ class EsNodeInfoAndScanRangeTest {
     @Test
     void testScanRangeType() {
         EsScanRange range = new EsScanRange("idx", null, 1, Collections.emptyList());
-        Assertions.assertEquals(ConnectorScanRangeType.ES_SCAN, range.getRangeType());
+        Assertions.assertEquals(ConnectorScanRangeType.FILE_SCAN, range.getRangeType());
     }
 
     @Test
@@ -110,7 +145,10 @@ class EsNodeInfoAndScanRangeTest {
         Assertions.assertEquals("logs", props.get(EsScanRange.PROP_INDEX));
         Assertions.assertEquals("_doc", props.get(EsScanRange.PROP_TYPE));
         Assertions.assertEquals("3", props.get(EsScanRange.PROP_SHARD_ID));
-        Assertions.assertEquals("a:9200,b:9200", props.get(EsScanRange.PROP_HOSTS));
+        // host_port is the first host for BE ESScanReader
+        Assertions.assertEquals("a:9200", props.get(EsScanRange.PROP_HOST_PORT));
+        // es_hosts contains all hosts comma-separated for locality selection
+        Assertions.assertEquals("a:9200,b:9200", props.get(EsScanRange.PROP_ES_HOSTS));
     }
 
     @Test
@@ -124,7 +162,9 @@ class EsNodeInfoAndScanRangeTest {
     void testScanRangeNullHostsBecomesEmptyList() {
         EsScanRange range = new EsScanRange("idx", null, 0, null);
         Assertions.assertTrue(range.getEsHosts().isEmpty());
-        Assertions.assertEquals("", range.getProperties().get(EsScanRange.PROP_HOSTS));
+        // No host_port or es_hosts when hosts list is empty
+        Assertions.assertFalse(range.getProperties().containsKey(EsScanRange.PROP_HOST_PORT));
+        Assertions.assertFalse(range.getProperties().containsKey(EsScanRange.PROP_ES_HOSTS));
     }
 
     @Test
@@ -152,6 +192,13 @@ class EsNodeInfoAndScanRangeTest {
         Assertions.assertEquals(Arrays.asList("es1.example.com", "es2.example.com"), range.getHosts());
     }
 
+    @Test
+    void testScanRangeGetHostsHandlesIpv6() {
+        EsScanRange range = new EsScanRange("idx", null, 0,
+                Arrays.asList("[::1]:9200", "http://[fd00::1]:9200"));
+        Assertions.assertEquals(Arrays.asList("::1", "fd00::1"), range.getHosts());
+    }
+
     @Test
     void testScanRangeGetHostsDeduplicates() {
         EsScanRange range = new EsScanRange("idx", null, 0,
@@ -159,4 +206,10 @@ class EsNodeInfoAndScanRangeTest {
         // h1 appears twice (different ports) but should be deduplicated
         Assertions.assertEquals(Arrays.asList("h1", "h2"), range.getHosts());
     }
+
+    @Test
+    void testFormatHostPortBracketsIpv6() {
+        Assertions.assertEquals("[::1]:9200", EsHostAddress.formatHostPort("::1", 9200));
+        Assertions.assertEquals("https://[::1]:9243", EsHostAddress.formatHostPort("https://::1", 9243));
+    }
 }
diff --git a/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsScanPlanProviderTest.java b/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsScanPlanProviderTest.java
index 8dd262ffbb9..a0fd0b77533 100644
--- a/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsScanPlanProviderTest.java
+++ b/fe/fe-connector/fe-connector-es/src/test/java/org/apache/doris/connector/es/EsScanPlanProviderTest.java
@@ -116,66 +116,30 @@ class EsScanPlanProviderTest {
     }
 
     @Test
-    void testMetadataFetchedOnceWithinCacheTtl() {
+    void testPlanScanAndScanNodePropertiesFetchIndependently() {
         CountingRestClient client = new CountingRestClient();
         EsScanPlanProvider provider = new EsScanPlanProvider(client, minimalProps());
         EsTableHandle handle = new EsTableHandle("test_index");
 
-        // First call fetches from REST
         provider.planScan(EMPTY_SESSION, handle, Collections.emptyList(), java.util.Optional.empty());
-        Assertions.assertEquals(1, client.getMappingCount.get(),
-                "First planScan should fetch mapping once");
-
-        // Second call should use cache — no additional REST call
         provider.getScanNodeProperties(EMPTY_SESSION, handle, Collections.emptyList(),
                 java.util.Optional.empty());
-        Assertions.assertEquals(1, client.getMappingCount.get(),
-                "getScanNodeProperties should use cached metadata");
-        Assertions.assertEquals(1, client.searchShardsCount.get(),
-                "searchShards should only be called once total");
-    }
-
-    @Test
-    void testCacheExpiredRefetches() throws Exception {
-        CountingRestClient client = new CountingRestClient();
-        EsScanPlanProvider provider = new EsScanPlanProvider(client, minimalProps());
-        EsTableHandle handle = new EsTableHandle("test_index");
-
-        // First fetch
-        provider.planScan(EMPTY_SESSION, handle, Collections.emptyList(), java.util.Optional.empty());
-        Assertions.assertEquals(1, client.getMappingCount.get());
-
-        // Clear cache to simulate expiry
-        provider.clearMetadataCache();
-
-        // After expiry, should refetch
-        provider.planScan(EMPTY_SESSION, handle, Collections.emptyList(), java.util.Optional.empty());
         Assertions.assertEquals(2, client.getMappingCount.get(),
-                "After cache clear, should refetch metadata");
+                "Each provider call should fetch mapping for the current request");
+        Assertions.assertEquals(2, client.searchShardsCount.get(),
+                "Each provider call should fetch shard routing for the current request");
     }
 
     @Test
-    void testDifferentIndexesCachedSeparately() {
+    void testDifferentIndexesFetchSeparately() {
         CountingRestClient client = new CountingRestClient();
         EsScanPlanProvider provider = new EsScanPlanProvider(client, minimalProps());
-
-        EsTableHandle handle1 = new EsTableHandle("index_a");
-        EsTableHandle handle2 = new EsTableHandle("index_b");
-
-        provider.planScan(EMPTY_SESSION, handle1, Collections.emptyList(), java.util.Optional.empty());
-        provider.planScan(EMPTY_SESSION, handle2, Collections.emptyList(), java.util.Optional.empty());
-
-        // Each index should trigger one fetch
+        provider.planScan(EMPTY_SESSION, new EsTableHandle("index_a"),
+                Collections.emptyList(), java.util.Optional.empty());
+        provider.planScan(EMPTY_SESSION, new EsTableHandle("index_b"),
+                Collections.emptyList(), java.util.Optional.empty());
         Assertions.assertEquals(2, client.getMappingCount.get(),
-                "Different indexes should each trigger a fetch");
-        Assertions.assertEquals(2, provider.metadataCacheSize(),
-                "Cache should have entries for both indexes");
-
-        // Fetching same indexes again should be cached
-        provider.planScan(EMPTY_SESSION, handle1, Collections.emptyList(), java.util.Optional.empty());
-        provider.planScan(EMPTY_SESSION, handle2, Collections.emptyList(), java.util.Optional.empty());
-        Assertions.assertEquals(2, client.getMappingCount.get(),
-                "Cached indexes should not trigger refetch");
+                "Different indexes should each fetch their own metadata");
     }
 
     @Test
@@ -189,4 +153,28 @@ class EsScanPlanProviderTest {
         Assertions.assertFalse(metadata.supportsMerge(),
                 "ES connector metadata should not support MERGE");
     }
+
+    @Test
+    void testAppendExplainInfoShowsEsIndex() {
+        CountingRestClient client = new CountingRestClient();
+        EsScanPlanProvider provider = new EsScanPlanProvider(client, minimalProps());
+        EsTableHandle handle = new EsTableHandle("my_test_index");
+
+        Map<String, String> props = provider.getScanNodeProperties(
+                EMPTY_SESSION, handle, Collections.emptyList(), java.util.Optional.empty());
+        StringBuilder output = new StringBuilder();
+        provider.appendExplainInfo(output, "", props);
+
+        Assertions.assertTrue(output.toString().contains("ES index: my_test_index"));
+    }
+
+    @Test
+    void testAppendExplainInfoMissingIndex() {
+        EsScanPlanProvider provider = new EsScanPlanProvider(new CountingRestClient(), minimalProps());
+        StringBuilder output = new StringBuilder();
+
+        provider.appendExplainInfo(output, "", Collections.emptyMap());
+
+        Assertions.assertFalse(output.toString().contains("ES index:"));
+    }
 }
diff --git a/fe/fe-connector/fe-connector-hive/pom.xml b/fe/fe-connector/fe-connector-hive/pom.xml
index 415b7ef6972..055331c269c 100644
--- a/fe/fe-connector/fe-connector-hive/pom.xml
+++ b/fe/fe-connector/fe-connector-hive/pom.xml
@@ -47,6 +47,21 @@ under the License.
             <version>${project.version}</version>
         </dependency>
 
+        <!-- connector-api provides SPI interfaces -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-connector-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <!-- Thrift types for constructing TTableFormatFileDesc in populateRangeParams -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-thrift</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
         <!-- Shared HMS client library -->
         <dependency>
             <groupId>${project.groupId}</groupId>
diff --git a/fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/HiveScanRange.java b/fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/HiveScanRange.java
index b39f3e5897b..610bfeaeb88 100644
--- a/fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/HiveScanRange.java
+++ b/fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/HiveScanRange.java
@@ -19,7 +19,12 @@ package org.apache.doris.connector.hive;
 
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
 import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
+import org.apache.doris.thrift.TFileRangeDesc;
+import org.apache.doris.thrift.TTableFormatFileDesc;
+import org.apache.doris.thrift.TTransactionalHiveDeleteDeltaDesc;
+import org.apache.doris.thrift.TTransactionalHiveDesc;
 
+import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
@@ -133,6 +138,45 @@ public class HiveScanRange implements ConnectorScanRange {
                 + ", tableFormat=" + tableFormatType + "}";
     }
 
+    @Override
+    public void populateRangeParams(TTableFormatFileDesc formatDesc,
+            TFileRangeDesc rangeDesc) {
+        if ("transactional_hive".equals(getTableFormatType())) {
+            populateTransactionalHiveParams(formatDesc);
+        }
+        // Non-transactional hive needs no per-split TTableFormatFileDesc fields.
+    }
+
+    private void populateTransactionalHiveParams(TTableFormatFileDesc formatDesc) {
+        Map<String, String> props = getProperties();
+        TTransactionalHiveDesc txnDesc = new TTransactionalHiveDesc();
+
+        String partLoc = props.get("acid.partition_location");
+        if (partLoc != null) {
+            txnDesc.setPartition(partLoc);
+        }
+
+        String countStr = props.get("acid.delete_delta_count");
+        if (countStr != null) {
+            int count = Integer.parseInt(countStr);
+            List<TTransactionalHiveDeleteDeltaDesc> deltas = new ArrayList<>(count);
+            for (int i = 0; i < count; i++) {
+                String deltaStr = props.get("acid.delete_delta." + i);
+                if (deltaStr != null) {
+                    TTransactionalHiveDeleteDeltaDesc delta =
+                            new TTransactionalHiveDeleteDeltaDesc();
+                    delta.setDirectoryLocation(deltaStr.contains("|")
+                            ? deltaStr.substring(0, deltaStr.indexOf('|'))
+                            : deltaStr);
+                    deltas.add(delta);
+                }
+            }
+            txnDesc.setDeleteDeltas(deltas);
+        }
+
+        formatDesc.setTransactionalHiveParams(txnDesc);
+    }
+
     public static Builder builder() {
         return new Builder();
     }
diff --git a/fe/fe-connector/fe-connector-hudi/pom.xml b/fe/fe-connector/fe-connector-hudi/pom.xml
index 271b652fdb5..2285112734b 100644
--- a/fe/fe-connector/fe-connector-hudi/pom.xml
+++ b/fe/fe-connector/fe-connector-hudi/pom.xml
@@ -48,6 +48,21 @@ under the License.
             <version>${project.version}</version>
         </dependency>
 
+        <!-- connector-api provides SPI interfaces -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-connector-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <!-- Thrift types for constructing TTableFormatFileDesc in populateRangeParams -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-thrift</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
         <!-- Shared HMS client library for table discovery -->
         <dependency>
             <groupId>${project.groupId}</groupId>
diff --git a/fe/fe-connector/fe-connector-hudi/src/main/java/org/apache/doris/connector/hudi/HudiScanRange.java b/fe/fe-connector/fe-connector-hudi/src/main/java/org/apache/doris/connector/hudi/HudiScanRange.java
index e87b3ac0cca..d1318df5ef5 100644
--- a/fe/fe-connector/fe-connector-hudi/src/main/java/org/apache/doris/connector/hudi/HudiScanRange.java
+++ b/fe/fe-connector/fe-connector-hudi/src/main/java/org/apache/doris/connector/hudi/HudiScanRange.java
@@ -19,7 +19,13 @@ package org.apache.doris.connector.hudi;
 
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
 import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
+import org.apache.doris.thrift.TFileFormatType;
+import org.apache.doris.thrift.TFileRangeDesc;
+import org.apache.doris.thrift.THudiFileDesc;
+import org.apache.doris.thrift.TTableFormatFileDesc;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
@@ -141,6 +147,79 @@ public class HudiScanRange implements ConnectorScanRange {
                 + ", start=" + start + ", length=" + length + "}";
     }
 
+    @Override
+    public void populateRangeParams(TTableFormatFileDesc formatDesc,
+            TFileRangeDesc rangeDesc) {
+        Map<String, String> props = getProperties();
+        THudiFileDesc fileDesc = new THudiFileDesc();
+
+        boolean isJni = "jni".equalsIgnoreCase(getFileFormat());
+
+        // Dynamic format downgrade: if JNI but no delta logs, use native reader
+        if (isJni) {
+            String deltaLogs = props.get("hudi.delta_logs");
+            if (deltaLogs == null || deltaLogs.isEmpty()) {
+                String dataFilePath = props.getOrDefault(
+                        "hudi.data_file_path", "");
+                if (!dataFilePath.isEmpty()) {
+                    String lower = dataFilePath.toLowerCase();
+                    if (lower.endsWith(".parquet")) {
+                        rangeDesc.setFormatType(TFileFormatType.FORMAT_PARQUET);
+                        isJni = false;
+                    } else if (lower.endsWith(".orc")) {
+                        rangeDesc.setFormatType(TFileFormatType.FORMAT_ORC);
+                        isJni = false;
+                    }
+                }
+            }
+        }
+
+        if (isJni) {
+            fileDesc.setInstantTime(
+                    props.getOrDefault("hudi.instant_time", ""));
+            fileDesc.setSerde(props.getOrDefault("hudi.serde", ""));
+            fileDesc.setInputFormat(
+                    props.getOrDefault("hudi.input_format", ""));
+            fileDesc.setBasePath(
+                    props.getOrDefault("hudi.base_path", ""));
+            fileDesc.setDataFilePath(
+                    props.getOrDefault("hudi.data_file_path", ""));
+            fileDesc.setDataFileLength(Long.parseLong(
+                    props.getOrDefault("hudi.data_file_length", "0")));
+
+            String deltaLogs = props.get("hudi.delta_logs");
+            if (deltaLogs != null && !deltaLogs.isEmpty()) {
+                fileDesc.setDeltaLogs(
+                        Arrays.asList(deltaLogs.split(",")));
+            }
+            String colNames = props.get("hudi.column_names");
+            if (colNames != null && !colNames.isEmpty()) {
+                fileDesc.setColumnNames(
+                        Arrays.asList(colNames.split(",")));
+            }
+            String colTypes = props.get("hudi.column_types");
+            if (colTypes != null && !colTypes.isEmpty()) {
+                fileDesc.setColumnTypes(
+                        Arrays.asList(colTypes.split(",")));
+            }
+        }
+
+        formatDesc.setHudiParams(fileDesc);
+
+        // Set partition values for path-based partition extraction
+        Map<String, String> partValues = getPartitionValues();
+        if (partValues != null && !partValues.isEmpty()) {
+            List<String> pathKeys = new ArrayList<>();
+            List<String> pathValues = new ArrayList<>();
+            for (Map.Entry<String, String> entry : partValues.entrySet()) {
+                pathKeys.add(entry.getKey());
+                pathValues.add(entry.getValue());
+            }
+            rangeDesc.setColumnsFromPathKeys(pathKeys);
+            rangeDesc.setColumnsFromPath(pathValues);
+        }
+    }
+
     /** Builder for constructing HudiScanRange instances. */
     public static class Builder {
         private String path;
diff --git a/fe/fe-connector/fe-connector-maxcompute/pom.xml b/fe/fe-connector/fe-connector-maxcompute/pom.xml
index 41db4178b76..3ed6ac74ed0 100644
--- a/fe/fe-connector/fe-connector-maxcompute/pom.xml
+++ b/fe/fe-connector/fe-connector-maxcompute/pom.xml
@@ -45,6 +45,21 @@ under the License.
             <version>${project.version}</version>
         </dependency>
 
+        <!-- connector-api provides SPI interfaces -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-connector-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <!-- Thrift types for constructing TTableFormatFileDesc in populateRangeParams -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-thrift</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
         <!-- MaxCompute (ODPS) SDK -->
         <dependency>
             <groupId>com.aliyun.odps</groupId>
diff --git a/fe/fe-connector/fe-connector-maxcompute/src/main/java/org/apache/doris/connector/maxcompute/MaxComputeScanRange.java b/fe/fe-connector/fe-connector-maxcompute/src/main/java/org/apache/doris/connector/maxcompute/MaxComputeScanRange.java
index e8af38080b4..ecdd11cc558 100644
--- a/fe/fe-connector/fe-connector-maxcompute/src/main/java/org/apache/doris/connector/maxcompute/MaxComputeScanRange.java
+++ b/fe/fe-connector/fe-connector-maxcompute/src/main/java/org/apache/doris/connector/maxcompute/MaxComputeScanRange.java
@@ -19,6 +19,9 @@ package org.apache.doris.connector.maxcompute;
 
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
 import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
+import org.apache.doris.thrift.TFileRangeDesc;
+import org.apache.doris.thrift.TMaxComputeFileDesc;
+import org.apache.doris.thrift.TTableFormatFileDesc;
 
 import java.util.Collections;
 import java.util.HashMap;
@@ -97,6 +100,28 @@ public class MaxComputeScanRange implements ConnectorScanRange {
         return properties;
     }
 
+    @Override
+    public void populateRangeParams(TTableFormatFileDesc formatDesc,
+            TFileRangeDesc rangeDesc) {
+        Map<String, String> props = getProperties();
+        TMaxComputeFileDesc fileDesc = new TMaxComputeFileDesc();
+        fileDesc.setPartitionSpec("deprecated");
+        fileDesc.setTableBatchReadSession(
+                props.getOrDefault("table_batch_read_session", ""));
+        fileDesc.setSessionId(props.getOrDefault("session_id", ""));
+        fileDesc.setReadTimeout(
+                Integer.parseInt(props.getOrDefault("read_timeout", "120")));
+        fileDesc.setConnectTimeout(
+                Integer.parseInt(props.getOrDefault("connect_timeout", "10")));
+        fileDesc.setRetryTimes(
+                Integer.parseInt(props.getOrDefault("retry_times", "4")));
+        formatDesc.setMaxComputeParams(fileDesc);
+
+        rangeDesc.setPath("[ " + getStart() + " , " + getLength() + " ]");
+        rangeDesc.setStartOffset(getStart());
+        rangeDesc.setSize(getLength());
+    }
+
     public static Builder builder() {
         return new Builder();
     }
diff --git a/fe/fe-connector/fe-connector-paimon/pom.xml b/fe/fe-connector/fe-connector-paimon/pom.xml
index aa10cae38a0..1810e30be08 100644
--- a/fe/fe-connector/fe-connector-paimon/pom.xml
+++ b/fe/fe-connector/fe-connector-paimon/pom.xml
@@ -47,6 +47,21 @@ under the License.
             <version>${project.version}</version>
         </dependency>
 
+        <!-- connector-api provides SPI interfaces -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-connector-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <!-- Thrift types for constructing TTableFormatFileDesc in populateRangeParams -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-thrift</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
         <!-- Paimon SDK -->
         <dependency>
             <groupId>org.apache.paimon</groupId>
diff --git a/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanPlanProvider.java b/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanPlanProvider.java
index 64bef4ce392..d850cdc5f94 100644
--- a/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanPlanProvider.java
+++ b/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanPlanProvider.java
@@ -23,7 +23,10 @@ import org.apache.doris.connector.api.handle.ConnectorTableHandle;
 import org.apache.doris.connector.api.pushdown.ConnectorExpression;
 import org.apache.doris.connector.api.scan.ConnectorScanPlanProvider;
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
+import org.apache.doris.thrift.TFileScanRangeParams;
 
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.fasterxml.jackson.databind.ObjectMapper;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import org.apache.paimon.CoreOptions;
@@ -71,6 +74,10 @@ public class PaimonScanPlanProvider implements ConnectorScanPlanProvider {
 
     private static final Base64.Encoder BASE64_ENCODER = Base64.getEncoder();
 
+    private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
+    private static final TypeReference<Map<String, String>> MAP_TYPE_REF =
+            new TypeReference<Map<String, String>>() {};
+
     private final Map<String, String> properties;
 
     public PaimonScanPlanProvider(Map<String, String> properties) {
@@ -348,6 +355,31 @@ public class PaimonScanPlanProvider implements ConnectorScanPlanProvider {
         return Optional.empty();
     }
 
+    @Override
+    public void populateScanLevelParams(TFileScanRangeParams params,
+            Map<String, String> properties) {
+        String predicate = properties.get("paimon.predicate");
+        if (predicate != null) {
+            params.setPaimonPredicate(predicate);
+        }
+
+        String optionsJson = properties.get("paimon.options_json");
+        if (optionsJson != null && !optionsJson.isEmpty()) {
+            try {
+                Map<String, String> options = OBJECT_MAPPER
+                        .readValue(optionsJson, MAP_TYPE_REF);
+                params.setPaimonOptions(options);
+            } catch (Exception e) {
+                LOG.warn("Failed to parse paimon.options_json", e);
+            }
+        }
+    }
+
+    @Override
+    public String getSerializedTable(Map<String, String> properties) {
+        return properties.get("paimon.serialized_table");
+    }
+
     @SuppressWarnings("unchecked")
     private static <T> String encodeObjectToString(T obj) {
         try {
diff --git a/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanRange.java b/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanRange.java
index 0a5cf40e5aa..e3bdbb5fe93 100644
--- a/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanRange.java
+++ b/fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanRange.java
@@ -19,9 +19,16 @@ package org.apache.doris.connector.paimon;
 
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
 import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
+import org.apache.doris.thrift.TFileFormatType;
+import org.apache.doris.thrift.TFileRangeDesc;
+import org.apache.doris.thrift.TPaimonDeletionFileDesc;
+import org.apache.doris.thrift.TPaimonFileDesc;
+import org.apache.doris.thrift.TTableFormatFileDesc;
 
+import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 
@@ -143,6 +150,82 @@ public class PaimonScanRange implements ConnectorScanRange {
                 + ", start=" + start + ", length=" + length + "}";
     }
 
+    @Override
+    public void populateRangeParams(TTableFormatFileDesc formatDesc,
+            TFileRangeDesc rangeDesc) {
+        Map<String, String> props = getProperties();
+        TPaimonFileDesc fileDesc = new TPaimonFileDesc();
+
+        String paimonSplitVal = props.get("paimon.split");
+        if (paimonSplitVal != null) {
+            // JNI reader path
+            rangeDesc.setFormatType(TFileFormatType.FORMAT_JNI);
+            fileDesc.setPaimonSplit(paimonSplitVal);
+            String tableLocation = props.get("paimon.table_location");
+            if (tableLocation != null) {
+                fileDesc.setPaimonTable(tableLocation);
+            }
+            String weightStr = props.get("paimon.self_split_weight");
+            if (weightStr != null) {
+                rangeDesc.setSelfSplitWeight(Long.parseLong(weightStr));
+            }
+        } else {
+            // Native reader path — format already set by file extension
+            String fmt = getFileFormat();
+            if ("orc".equals(fmt)) {
+                rangeDesc.setFormatType(TFileFormatType.FORMAT_ORC);
+            } else if ("parquet".equals(fmt)) {
+                rangeDesc.setFormatType(TFileFormatType.FORMAT_PARQUET);
+            }
+            String schemaIdStr = props.get("paimon.schema_id");
+            if (schemaIdStr != null) {
+                fileDesc.setSchemaId(Long.parseLong(schemaIdStr));
+            }
+        }
+
+        fileDesc.setFileFormat(getFileFormat());
+
+        // Deletion file
+        String deletionPath = props.get("paimon.deletion_file.path");
+        if (deletionPath != null) {
+            TPaimonDeletionFileDesc deletionFile =
+                    new TPaimonDeletionFileDesc();
+            deletionFile.setPath(deletionPath);
+            deletionFile.setOffset(Long.parseLong(
+                    props.getOrDefault("paimon.deletion_file.offset", "0")));
+            deletionFile.setLength(Long.parseLong(
+                    props.getOrDefault("paimon.deletion_file.length", "0")));
+            fileDesc.setDeletionFile(deletionFile);
+        }
+
+        // Row count for count pushdown
+        String rowCountStr = props.get("paimon.row_count");
+        if (rowCountStr != null) {
+            formatDesc.setTableLevelRowCount(Long.parseLong(rowCountStr));
+        } else {
+            formatDesc.setTableLevelRowCount(-1);
+        }
+
+        formatDesc.setPaimonParams(fileDesc);
+
+        // Partition values
+        Map<String, String> partValues = getPartitionValues();
+        if (partValues != null && !partValues.isEmpty()) {
+            List<String> pathKeys = new ArrayList<>();
+            List<String> pathValues = new ArrayList<>();
+            List<Boolean> pathIsNull = new ArrayList<>();
+            for (Map.Entry<String, String> entry : partValues.entrySet()) {
+                pathKeys.add(entry.getKey());
+                pathValues.add(entry.getValue() != null
+                        ? entry.getValue() : "");
+                pathIsNull.add(entry.getValue() == null);
+            }
+            rangeDesc.setColumnsFromPathKeys(pathKeys);
+            rangeDesc.setColumnsFromPath(pathValues);
+            rangeDesc.setColumnsFromPathIsNull(pathIsNull);
+        }
+    }
+
     /** Builder for constructing PaimonScanRange instances. */
     public static class Builder {
         private String path;
diff --git a/fe/fe-connector/fe-connector-trino/pom.xml b/fe/fe-connector/fe-connector-trino/pom.xml
index ba1692f3d3a..97855ba7c91 100644
--- a/fe/fe-connector/fe-connector-trino/pom.xml
+++ b/fe/fe-connector/fe-connector-trino/pom.xml
@@ -46,6 +46,21 @@ under the License.
             <version>${project.version}</version>
         </dependency>
 
+        <!-- connector-api provides SPI interfaces -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-connector-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <!-- Thrift types for constructing TTableFormatFileDesc in populateRangeParams -->
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>fe-thrift</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
         <!-- fe-common for shared types (TrinoColumnMetadata) -->
         <dependency>
             <groupId>${project.groupId}</groupId>
diff --git a/fe/fe-connector/fe-connector-trino/src/main/java/org/apache/doris/connector/trino/TrinoScanRange.java b/fe/fe-connector/fe-connector-trino/src/main/java/org/apache/doris/connector/trino/TrinoScanRange.java
index 093308d1eb3..a52c781ec1c 100644
--- a/fe/fe-connector/fe-connector-trino/src/main/java/org/apache/doris/connector/trino/TrinoScanRange.java
+++ b/fe/fe-connector/fe-connector-trino/src/main/java/org/apache/doris/connector/trino/TrinoScanRange.java
@@ -19,6 +19,14 @@ package org.apache.doris.connector.trino;
 
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
 import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
+import org.apache.doris.thrift.TFileRangeDesc;
+import org.apache.doris.thrift.TTableFormatFileDesc;
+import org.apache.doris.thrift.TTrinoConnectorFileDesc;
+
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
 
 import java.util.Collections;
 import java.util.HashMap;
@@ -35,6 +43,10 @@ import java.util.Map;
 public class TrinoScanRange implements ConnectorScanRange {
 
     private static final long serialVersionUID = 1L;
+    private static final Logger LOG = LogManager.getLogger(TrinoScanRange.class);
+    private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
+    private static final TypeReference<Map<String, String>> MAP_TYPE_REF =
+            new TypeReference<Map<String, String>>() {};
 
     /** Property key for JSON-serialized ConnectorSplit. */
     public static final String KEY_SPLIT = "trino_connector_split";
@@ -83,6 +95,36 @@ public class TrinoScanRange implements ConnectorScanRange {
         return hosts;
     }
 
+    @Override
+    public void populateRangeParams(TTableFormatFileDesc formatDesc,
+            TFileRangeDesc rangeDesc) {
+        Map<String, String> props = getProperties();
+        TTrinoConnectorFileDesc fileDesc = new TTrinoConnectorFileDesc();
+        fileDesc.setCatalogName(props.getOrDefault(KEY_CATALOG_NAME, ""));
+        fileDesc.setDbName(props.getOrDefault(KEY_DB_NAME, ""));
+        fileDesc.setTableName(props.getOrDefault(KEY_TABLE_NAME, ""));
+        fileDesc.setTrinoConnectorSplit(props.getOrDefault(KEY_SPLIT, ""));
+        fileDesc.setTrinoConnectorTableHandle(
+                props.getOrDefault(KEY_TABLE_HANDLE, ""));
+        fileDesc.setTrinoConnectorColumnHandles(
+                props.getOrDefault(KEY_COLUMN_HANDLES, ""));
+        fileDesc.setTrinoConnectorColumnMetadata(
+                props.getOrDefault(KEY_COLUMN_METADATA, ""));
+        fileDesc.setTrinoConnectorTrascationHandle(
+                props.getOrDefault(KEY_TRANSACTION_HANDLE, ""));
+
+        String optionsJson = props.getOrDefault(KEY_OPTIONS, "{}");
+        try {
+            Map<String, String> options = OBJECT_MAPPER
+                    .readValue(optionsJson, MAP_TYPE_REF);
+            fileDesc.setTrinoConnectorOptions(options);
+        } catch (Exception e) {
+            LOG.warn("Failed to parse trino_connector_options JSON, using empty map", e);
+            fileDesc.setTrinoConnectorOptions(new HashMap<>());
+        }
+        formatDesc.setTrinoConnectorParams(fileDesc);
+    }
+
     /**
      * Builder for constructing TrinoScanRange instances.
      */
diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/PluginDrivenEsScanNode.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/PluginDrivenEsScanNode.java
deleted file mode 100644
index 7123b5d894c..00000000000
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/PluginDrivenEsScanNode.java
+++ /dev/null
@@ -1,390 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-package org.apache.doris.datasource;
-
-import org.apache.doris.analysis.Expr;
-import org.apache.doris.analysis.SlotDescriptor;
-import org.apache.doris.analysis.TupleDescriptor;
-import org.apache.doris.common.UserException;
-import org.apache.doris.connector.api.Connector;
-import org.apache.doris.connector.api.ConnectorMetadata;
-import org.apache.doris.connector.api.ConnectorSession;
-import org.apache.doris.connector.api.handle.ConnectorColumnHandle;
-import org.apache.doris.connector.api.handle.ConnectorTableHandle;
-import org.apache.doris.connector.api.handle.NamedColumnHandle;
-import org.apache.doris.connector.api.pushdown.ConnectorExpression;
-import org.apache.doris.connector.api.pushdown.ConnectorFilterConstraint;
-import org.apache.doris.connector.api.pushdown.FilterApplicationResult;
-import org.apache.doris.connector.api.pushdown.ProjectionApplicationResult;
-import org.apache.doris.connector.api.scan.ConnectorScanPlanProvider;
-import org.apache.doris.connector.api.scan.ConnectorScanRange;
-import org.apache.doris.planner.PlanNodeId;
-import org.apache.doris.planner.ScanContext;
-import org.apache.doris.system.Backend;
-import org.apache.doris.thrift.TEsScanNode;
-import org.apache.doris.thrift.TEsScanRange;
-import org.apache.doris.thrift.TExplainLevel;
-import org.apache.doris.thrift.TNetworkAddress;
-import org.apache.doris.thrift.TPlanNode;
-import org.apache.doris.thrift.TPlanNodeType;
-import org.apache.doris.thrift.TScanRange;
-import org.apache.doris.thrift.TScanRangeLocation;
-import org.apache.doris.thrift.TScanRangeLocations;
-
-import com.fasterxml.jackson.core.type.TypeReference;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-
-/**
- * Scan node for plugin-driven ES catalogs.
- *
- * <p>Extends {@link ExternalScanNode} (like the legacy EsScanNode) to produce
- * {@code ES_HTTP_SCAN_NODE} Thrift types. All ES-specific logic (shard routing,
- * query DSL building, field context resolution) is delegated to the connector
- * plugin via {@link ConnectorScanPlanProvider}.</p>
- *
- * <p>This node is used when a {@link PluginDrivenExternalTable} belongs to an
- * ES-type connector (detected via {@code getScanRangeType() == ES_SCAN}).</p>
- */
-public class PluginDrivenEsScanNode extends ExternalScanNode {
-
-    private static final Logger LOG = LogManager.getLogger(PluginDrivenEsScanNode.class);
-    private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
-    private static final TypeReference<Map<String, String>> MAP_TYPE_REF =
-            new TypeReference<Map<String, String>>() {};
-
-    private final Connector connector;
-    private final ConnectorSession connectorSession;
-    private ConnectorTableHandle currentHandle;
-
-    // Populated during finalize
-    private Map<String, String> nodeProperties = Collections.emptyMap();
-
-    public PluginDrivenEsScanNode(PlanNodeId id, TupleDescriptor desc,
-            ScanContext scanContext, Connector connector,
-            ConnectorSession connectorSession, ConnectorTableHandle tableHandle) {
-        super(id, desc, "PluginDrivenEsScanNode", scanContext, false);
-        this.connector = connector;
-        this.connectorSession = connectorSession;
-        this.currentHandle = tableHandle;
-    }
-
-    /**
-     * Creates from catalog and table references.
-     */
-    public static PluginDrivenEsScanNode create(PlanNodeId id, TupleDescriptor desc,
-            ScanContext scanContext, PluginDrivenExternalCatalog catalog,
-            PluginDrivenExternalTable table) {
-        Connector conn = catalog.getConnector();
-        ConnectorSession session = catalog.buildConnectorSession();
-        ConnectorMetadata metadata = conn.getMetadata(session);
-        String dbName = table.getDb() != null ? table.getDb().getRemoteName() : "";
-        String tableName = table.getRemoteName();
-        ConnectorTableHandle handle = metadata.getTableHandle(session, dbName, tableName)
-                .orElseThrow(() -> new RuntimeException(
-                        "Table handle not found for ES table: " + dbName + "." + tableName));
-        return new PluginDrivenEsScanNode(id, desc, scanContext, conn, session, handle);
-    }
-
-    @Override
-    public void finalizeForNereids() throws UserException {
-        // Attempt filter pushdown
-        pushdownFilter();
-        // Build scan ranges and node properties
-        createScanRangeLocations();
-    }
-
-    private void pushdownFilter() {
-        if (conjuncts == null || conjuncts.isEmpty()) {
-            return;
-        }
-        ConnectorMetadata metadata = connector.getMetadata(connectorSession);
-        ConnectorExpression combined = ExprToConnectorExpressionConverter.convertConjuncts(conjuncts);
-        ConnectorFilterConstraint constraint = new ConnectorFilterConstraint(
-                combined, Collections.emptyMap());
-        Optional<FilterApplicationResult<ConnectorTableHandle>> result =
-                metadata.applyFilter(connectorSession, currentHandle, constraint);
-        if (result.isPresent()) {
-            FilterApplicationResult<ConnectorTableHandle> filterResult = result.get();
-            currentHandle = filterResult.getHandle();
-            ConnectorExpression remaining = filterResult.getRemainingFilter();
-            if (remaining == null) {
-                conjuncts.clear();
-                LOG.debug("ES filter fully pushed down via applyFilter, cleared conjuncts");
-            } else {
-                LOG.debug("ES filter pushdown accepted with remaining, keeping conjuncts");
-            }
-        }
-    }
-
-    /**
-     * Attempts to push the projection down via the SPI applyProjection() protocol.
-     */
-    private void tryPushDownProjection(List<ConnectorColumnHandle> columns) {
-        if (columns.isEmpty()) {
-            return;
-        }
-        ConnectorMetadata metadata = connector.getMetadata(connectorSession);
-        Optional<ProjectionApplicationResult<ConnectorTableHandle>> result =
-                metadata.applyProjection(connectorSession, currentHandle, columns);
-        if (result.isPresent()) {
-            currentHandle = result.get().getHandle();
-            LOG.debug("ES projection pushed down via applyProjection");
-        }
-    }
-
-    @Override
-    protected void createScanRangeLocations() throws UserException {
-        ConnectorScanPlanProvider scanProvider = connector.getScanPlanProvider();
-        List<ConnectorColumnHandle> columns = buildColumnHandles();
-
-        // Attempt projection pushdown via SPI protocol
-        tryPushDownProjection(columns);
-
-        Optional<ConnectorExpression> remainingFilter = buildRemainingFilter();
-
-        // Get scan ranges (shard routing)
-        List<ConnectorScanRange> ranges = scanProvider.planScan(
-                connectorSession, currentHandle, columns, remainingFilter);
-
-        // Get node-level properties (query DSL, auth, doc values mode)
-        nodeProperties = scanProvider.getScanNodeProperties(
-                connectorSession, currentHandle, columns, remainingFilter);
-
-        // Remove pushed-down conjuncts to avoid redundant evaluation by BE.
-        // The connector returns indices of conjuncts that could NOT be pushed.
-        pruneConjuncts(nodeProperties);
-
-        // Convert to Thrift scan range locations
-        for (ConnectorScanRange range : ranges) {
-            TScanRangeLocations locations = convertToThrift(range);
-            scanRangeLocations.add(locations);
-        }
-
-        if (LOG.isDebugEnabled()) {
-            LOG.debug("ES plugin scan: {} ranges, query_dsl={}",
-                    scanRangeLocations.size(),
-                    nodeProperties.getOrDefault("query_dsl", "N/A"));
-        }
-    }
-
-    private TScanRangeLocations convertToThrift(ConnectorScanRange range) throws UserException {
-        Map<String, String> props = range.getProperties();
-        TScanRangeLocations locations = new TScanRangeLocations();
-
-        // Assign BE backends
-        List<String> hosts = range.getHosts();
-        FederationBackendPolicy bePolicy = new FederationBackendPolicy();
-        bePolicy.init(hosts);
-        int numBackends = bePolicy.numBackends();
-        for (int i = 0; i < numBackends; i++) {
-            TScanRangeLocation location = new TScanRangeLocation();
-            Backend be = bePolicy.getNextBe();
-            location.setBackendId(be.getId());
-            location.setServer(new TNetworkAddress(be.getHost(), be.getBePort()));
-            locations.addToLocations(location);
-        }
-
-        // Build TEsScanRange
-        TEsScanRange esScanRange = new TEsScanRange();
-
-        // ES hosts
-        String hostsStr = props.getOrDefault("es.hosts", "");
-        List<TNetworkAddress> esHosts = new ArrayList<>();
-        for (String hostPort : hostsStr.split(",")) {
-            String trimmed = hostPort.trim();
-            if (trimmed.isEmpty()) {
-                continue;
-            }
-            // Strip scheme prefix (http:// or https://) if present
-            String hostAndPort = trimmed;
-            int schemeEnd = hostAndPort.indexOf("://");
-            if (schemeEnd >= 0) {
-                hostAndPort = hostAndPort.substring(schemeEnd + 3);
-            }
-            int colonIdx = hostAndPort.lastIndexOf(':');
-            String host;
-            int port;
-            if (colonIdx > 0) {
-                host = hostAndPort.substring(0, colonIdx);
-                port = Integer.parseInt(hostAndPort.substring(colonIdx + 1));
-            } else {
-                host = hostAndPort;
-                port = 9200;
-            }
-            esHosts.add(new TNetworkAddress(host, port));
-        }
-        esScanRange.setEsHosts(esHosts);
-
-        // Index
-        String index = props.getOrDefault("es.index", "");
-        esScanRange.setIndex(index);
-
-        // Type
-        String type = props.getOrDefault("es.type", null);
-        if (type != null) {
-            esScanRange.setType(type);
-        }
-
-        // Shard ID
-        int shardId = Integer.parseInt(props.getOrDefault("es.shard_id", "-1"));
-        esScanRange.setShardId(shardId);
-
-        TScanRange scanRange = new TScanRange();
-        scanRange.setEsScanRange(esScanRange);
-        locations.setScanRange(scanRange);
-
-        return locations;
-    }
-
-    @Override
-    protected void toThrift(TPlanNode msg) {
-        msg.node_type = TPlanNodeType.ES_HTTP_SCAN_NODE;
-
-        Map<String, String> esProperties = new HashMap<>(nodeProperties);
-
-        TEsScanNode esScanNode = new TEsScanNode(desc.getId().asInt());
-
-        // Deserialize docvalue_context and fields_context from JSON flat properties.
-        // The ES connector serializes these Map<String,String> as JSON strings
-        // into the generic flat properties to avoid ES-specific API on the SPI.
-        String docvalueJson = esProperties.remove("docvalue_context_json");
-        if (docvalueJson != null && !docvalueJson.isEmpty()) {
-            try {
-                Map<String, String> docvalueContext = OBJECT_MAPPER.readValue(
-                        docvalueJson, MAP_TYPE_REF);
-                esScanNode.setDocvalueContext(docvalueContext);
-            } catch (Exception e) {
-                LOG.warn("Failed to deserialize docvalue_context_json", e);
-            }
-        }
-
-        String fieldsJson = esProperties.remove("fields_context_json");
-        if (fieldsJson != null && !fieldsJson.isEmpty()) {
-            try {
-                Map<String, String> fieldsContext = OBJECT_MAPPER.readValue(
-                        fieldsJson, MAP_TYPE_REF);
-                esScanNode.setFieldsContext(fieldsContext);
-            } catch (Exception e) {
-                LOG.warn("Failed to deserialize fields_context_json", e);
-            }
-        }
-
-        esScanNode.setProperties(esProperties);
-        msg.es_scan_node = esScanNode;
-        super.toThrift(msg);
-    }
-
-    @Override
-    public String getNodeExplainString(String prefix, TExplainLevel detailLevel) {
-        StringBuilder output = new StringBuilder();
-        String tableName = nodeProperties.getOrDefault("_table_name",
-                desc != null && desc.getTable() != null ? desc.getTable().getName() : "PluginDrivenES");
-        output.append(prefix).append("TABLE: ").append(tableName).append("\n");
-        if (detailLevel == TExplainLevel.BRIEF) {
-            return output.toString();
-        }
-
-        String sortColumn = nodeProperties.get("sort_column");
-        if (sortColumn != null) {
-            output.append(prefix).append("SORT COLUMN: ").append(sortColumn).append("\n");
-        }
-
-        if (!conjuncts.isEmpty()) {
-            output.append(prefix).append("LOCAL_PREDICATES: ")
-                    .append(getExplainString(conjuncts)).append("\n");
-        }
-        String queryDsl = nodeProperties.getOrDefault("query_dsl", "N/A");
-        output.append(prefix).append("REMOTE_PREDICATES: ")
-                .append(queryDsl).append("\n");
-
-        String indexName = nodeProperties.get("_es_index");
-        String typeName = nodeProperties.get("_es_type");
-        if (indexName != null) {
-            output.append(prefix).append(String.format("ES index/type: %s/%s",
-                    indexName, typeName != null ? typeName : "_doc")).append("\n");
-        }
-
-        String docValueScan = nodeProperties.get("doc_values_mode");
-        if (docValueScan != null) {
-            output.append(prefix).append("DOC_VALUE_SCAN: ").append(docValueScan).append("\n");
-        }
-
-        return output.toString();
-    }
-
-    private List<ConnectorColumnHandle> buildColumnHandles() {
-        ArrayList<SlotDescriptor> slots = desc.getSlots();
-        if (slots == null || slots.isEmpty()) {
-            return Collections.emptyList();
-        }
-        List<ConnectorColumnHandle> handles = new ArrayList<>(slots.size());
-        for (SlotDescriptor slot : slots) {
-            handles.add(new NamedColumnHandle(slot.getColumn().getName()));
-        }
-        return handles;
-    }
-
-    private Optional<ConnectorExpression> buildRemainingFilter() {
-        if (conjuncts == null || conjuncts.isEmpty()) {
-            return Optional.empty();
-        }
-        return Optional.of(ExprToConnectorExpressionConverter.convertConjuncts(conjuncts));
-    }
-
-    /**
-     * Prune conjuncts that were successfully pushed down to ES.
-     *
-     * <p>The connector returns a comma-separated list of indices for conjuncts
-     * that could NOT be pushed. We keep only those and remove the rest,
-     * matching the old EsScanNode behavior.</p>
-     */
-    private void pruneConjuncts(Map<String, String> props) {
-        if (conjuncts == null || conjuncts.isEmpty()) {
-            return;
-        }
-        String notPushedStr = props.get("_not_pushed_conjunct_indices");
-        if (notPushedStr == null) {
-            // No info → all conjuncts were pushed
-            conjuncts.clear();
-            return;
-        }
-        Set<Integer> notPushedSet = new HashSet<>();
-        for (String idx : notPushedStr.split(",")) {
-            notPushedSet.add(Integer.parseInt(idx.trim()));
-        }
-        List<Expr> remaining = new ArrayList<>();
-        for (int i = 0; i < conjuncts.size(); i++) {
-            if (notPushedSet.contains(i)) {
-                remaining.add(conjuncts.get(i));
-            }
-        }
-        conjuncts.clear();
-        conjuncts.addAll(remaining);
-    }
-}
diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/PluginDrivenScanNode.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/PluginDrivenScanNode.java
index c57ac67299a..d0875e6f32b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/PluginDrivenScanNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/PluginDrivenScanNode.java
@@ -37,6 +37,7 @@ import org.apache.doris.connector.api.pushdown.LimitApplicationResult;
 import org.apache.doris.connector.api.pushdown.ProjectionApplicationResult;
 import org.apache.doris.connector.api.scan.ConnectorScanPlanProvider;
 import org.apache.doris.connector.api.scan.ConnectorScanRange;
+import org.apache.doris.connector.api.scan.ScanNodePropertiesResult;
 import org.apache.doris.planner.PlanNodeId;
 import org.apache.doris.planner.ScanContext;
 import org.apache.doris.qe.SessionVariable;
@@ -46,11 +47,7 @@ import org.apache.doris.thrift.TFileAttributes;
 import org.apache.doris.thrift.TFileFormatType;
 import org.apache.doris.thrift.TFileRangeDesc;
 import org.apache.doris.thrift.TFileTextScanRangeParams;
-import org.apache.doris.thrift.TMaxComputeFileDesc;
-import org.apache.doris.thrift.TPaimonDeletionFileDesc;
-import org.apache.doris.thrift.TPaimonFileDesc;
 import org.apache.doris.thrift.TTableFormatFileDesc;
-import org.apache.doris.thrift.TTrinoConnectorFileDesc;
 
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
@@ -59,9 +56,11 @@ import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
+import java.util.Set;
 import java.util.stream.Collectors;
 
 /**
@@ -101,8 +100,11 @@ public class PluginDrivenScanNode extends FileQueryScanNode {
     // Set during filter pushdown; may be updated from the original table handle.
     private ConnectorTableHandle currentHandle;
 
-    // Populated from ConnectorScanPlanProvider.getScanNodeProperties()
+    // Populated from ConnectorScanPlanProvider.getScanNodePropertiesResult()
+    private ScanNodePropertiesResult cachedPropertiesResult;
     private Map<String, String> scanNodeProperties;
+    // Maps filtered conjunct indices (after CAST removal) back to original conjunct indices
+    private List<Integer> filteredToOriginalIndex;
 
     public PluginDrivenScanNode(PlanNodeId id, TupleDescriptor desc,
             boolean needCheckColumnPriv, SessionVariable sv,
@@ -155,6 +157,17 @@ public class PluginDrivenScanNode extends FileQueryScanNode {
                         .append(expr.accept(ExprToSqlVisitor.INSTANCE, ToSqlParams.WITH_TABLE))
                         .append("\n");
             }
+            // Delegate connector-specific EXPLAIN info to the SPI
+            ConnectorScanPlanProvider scanProvider = connector.getScanPlanProvider();
+            if (scanProvider != null) {
+                scanProvider.appendExplainInfo(output, prefix, props);
+            }
+            // Show ES terminate_after optimization when limit is pushed to ES
+            if (limit > 0 && conjuncts.isEmpty()
+                    && "es_http".equals(props.get(PROP_FILE_FORMAT_TYPE))) {
+                output.append(prefix).append("ES terminate_after: ")
+                        .append(limit).append("\n");
+            }
         }
         if (useTopnFilter()) {
             String topnFilterSources = String.join(",",
@@ -295,6 +308,8 @@ public class PluginDrivenScanNode extends FileQueryScanNode {
         }
         // Invalidate cached properties so they are rebuilt with the updated conjuncts/handle.
         scanNodeProperties = null;
+        cachedPropertiesResult = null;
+        filteredToOriginalIndex = null;
     }
 
     /**
@@ -373,345 +388,121 @@ public class PluginDrivenScanNode extends FileQueryScanNode {
         TTableFormatFileDesc tableFormatFileDesc = new TTableFormatFileDesc();
         tableFormatFileDesc.setTableFormatType(scanRange.getTableFormatType());
 
-        String formatType = scanRange.getTableFormatType();
-        if ("max_compute".equals(formatType)) {
-            setMaxComputeParams(tableFormatFileDesc, scanRange, rangeDesc);
-        } else if ("trino_connector".equals(formatType)) {
-            setTrinoConnectorParams(tableFormatFileDesc, scanRange);
-        } else if ("hive".equals(formatType)) {
-            setHiveParams(tableFormatFileDesc, scanRange);
-        } else if ("transactional_hive".equals(formatType)) {
-            setTransactionalHiveParams(tableFormatFileDesc, scanRange);
-        } else if ("hudi".equals(formatType)) {
-            setHudiParams(tableFormatFileDesc, scanRange, rangeDesc);
-        } else if ("paimon".equals(formatType)) {
-            setPaimonParams(tableFormatFileDesc, scanRange, rangeDesc);
-        } else {
-            setGenericParams(tableFormatFileDesc, scanRange);
-        }
+        // Delegate format-specific Thrift construction to the connector SPI
+        scanRange.populateRangeParams(tableFormatFileDesc, rangeDesc);
 
         rangeDesc.setTableFormatParams(tableFormatFileDesc);
     }
 
-    /**
-     * Sets MaxCompute-specific scan params via TMaxComputeFileDesc.
-     * BE expects typed Thrift fields, not a generic Map.
-     */
-    private void setMaxComputeParams(TTableFormatFileDesc formatDesc,
-            ConnectorScanRange scanRange, TFileRangeDesc rangeDesc) {
-        Map<String, String> props = scanRange.getProperties();
-        TMaxComputeFileDesc fileDesc = new TMaxComputeFileDesc();
-        fileDesc.setPartitionSpec("deprecated");
-        fileDesc.setTableBatchReadSession(
-                props.getOrDefault("table_batch_read_session", ""));
-        fileDesc.setSessionId(props.getOrDefault("session_id", ""));
-        fileDesc.setReadTimeout(
-                Integer.parseInt(props.getOrDefault("read_timeout", "120")));
-        fileDesc.setConnectTimeout(
-                Integer.parseInt(props.getOrDefault("connect_timeout", "10")));
-        fileDesc.setRetryTimes(
-                Integer.parseInt(props.getOrDefault("retry_times", "4")));
-        formatDesc.setMaxComputeParams(fileDesc);
-
-        rangeDesc.setPath("[ " + scanRange.getStart() + " , " + scanRange.getLength() + " ]");
-        rangeDesc.setStartOffset(scanRange.getStart());
-        rangeDesc.setSize(scanRange.getLength());
-    }
-
-    /**
-     * Sets Trino connector-specific scan params via TTrinoConnectorFileDesc.
-     * All values are pre-serialized JSON strings from the plugin module.
-     */
-    private void setTrinoConnectorParams(TTableFormatFileDesc formatDesc,
-            ConnectorScanRange scanRange) {
-        Map<String, String> props = scanRange.getProperties();
-        TTrinoConnectorFileDesc fileDesc = new TTrinoConnectorFileDesc();
-        fileDesc.setCatalogName(props.getOrDefault("catalog_name", ""));
-        fileDesc.setDbName(props.getOrDefault("db_name", ""));
-        fileDesc.setTableName(props.getOrDefault("table_name", ""));
-        fileDesc.setTrinoConnectorSplit(
-                props.getOrDefault("trino_connector_split", ""));
-        fileDesc.setTrinoConnectorTableHandle(
-                props.getOrDefault("trino_connector_table_handle", ""));
-        fileDesc.setTrinoConnectorColumnHandles(
-                props.getOrDefault("trino_connector_column_handles", ""));
-        fileDesc.setTrinoConnectorColumnMetadata(
-                props.getOrDefault("trino_connector_column_metadata", ""));
-        fileDesc.setTrinoConnectorTrascationHandle(
-                props.getOrDefault("trino_connector_trascation_handle", ""));
-
-        // Options is a map — parse from JSON or use directly
-        String optionsJson = props.getOrDefault("trino_connector_options", "{}");
-        try {
-            @SuppressWarnings("unchecked")
-            Map<String, String> options = new com.fasterxml.jackson.databind.ObjectMapper()
-                    .readValue(optionsJson,
-                            new com.fasterxml.jackson.core.type.TypeReference<Map<String, String>>() {});
-            fileDesc.setTrinoConnectorOptions(options);
-        } catch (Exception e) {
-            LOG.warn("Failed to parse trino_connector_options JSON, using empty map", e);
-            fileDesc.setTrinoConnectorOptions(new HashMap<>());
-        }
-        formatDesc.setTrinoConnectorParams(fileDesc);
-    }
-
-    /**
-     * Sets generic scan params via jdbc_params map (for JDBC, plugin_driven, etc.).
-     */
-    private void setGenericParams(TTableFormatFileDesc formatDesc,
-            ConnectorScanRange scanRange) {
-        Map<String, String> props = new HashMap<>(scanRange.getProperties());
-        props.put("connector_scan_range_type", scanRange.getRangeType().name());
-        props.put("connector_file_format", scanRange.getFileFormat());
-
-        Map<String, String> partValues = scanRange.getPartitionValues();
-        if (partValues != null && !partValues.isEmpty()) {
-            for (Map.Entry<String, String> entry : partValues.entrySet()) {
-                props.put("partition." + entry.getKey(), entry.getValue());
-            }
-        }
-
-        formatDesc.setJdbcParams(props);
-    }
-
-    /**
-     * Sets Hive-specific scan params. For non-transactional Hive tables,
-     * the TTableFormatFileDesc carries "hive" as the table format type.
-     * The file path/offset/length are already set by the FileSplit pipeline.
-     */
-    private void setHiveParams(TTableFormatFileDesc formatDesc,
-            ConnectorScanRange scanRange) {
-        // For non-transactional hive, minimal params needed.
-        // The file format, partition values, and text properties are
-        // handled at the scan-node level via getFileFormatType(),
-        // getPathPartitionKeys(), and getFileAttributes().
-        // No per-split TTableFormatFileDesc fields needed beyond the type.
-    }
 
-    /**
-     * Sets transactional Hive (ACID) scan params. Populates
-     * TTransactionalHiveDesc with partition location and delete deltas.
-     */
-    private void setTransactionalHiveParams(TTableFormatFileDesc formatDesc,
-            ConnectorScanRange scanRange) {
-        Map<String, String> props = scanRange.getProperties();
-        org.apache.doris.thrift.TTransactionalHiveDesc txnDesc =
-                new org.apache.doris.thrift.TTransactionalHiveDesc();
-
-        String partLoc = props.get("acid.partition_location");
-        if (partLoc != null) {
-            txnDesc.setPartition(partLoc);
-        }
-
-        String countStr = props.get("acid.delete_delta_count");
-        if (countStr != null) {
-            int count = Integer.parseInt(countStr);
-            List<org.apache.doris.thrift.TTransactionalHiveDeleteDeltaDesc> deltas =
-                    new ArrayList<>(count);
-            for (int i = 0; i < count; i++) {
-                String deltaStr = props.get("acid.delete_delta." + i);
-                if (deltaStr != null) {
-                    org.apache.doris.thrift.TTransactionalHiveDeleteDeltaDesc delta =
-                            new org.apache.doris.thrift.TTransactionalHiveDeleteDeltaDesc();
-                    delta.setDirectoryLocation(deltaStr.contains("|")
-                            ? deltaStr.substring(0, deltaStr.indexOf('|'))
-                            : deltaStr);
-                    deltas.add(delta);
-                }
+    @Override
+    protected Optional<String> getSerializedTable() {
+        ConnectorScanPlanProvider scanProvider = connector.getScanPlanProvider();
+        if (scanProvider != null) {
+            Map<String, String> props = getOrLoadScanNodeProperties();
+            String serialized = scanProvider.getSerializedTable(props);
+            if (serialized != null) {
+                return Optional.of(serialized);
             }
-            txnDesc.setDeleteDeltas(deltas);
         }
-
-        formatDesc.setTransactionalHiveParams(txnDesc);
+        return Optional.empty();
     }
 
-    /**
-     * Sets Hudi-specific scan params via THudiFileDesc.
-     * Handles dynamic format downgrade: MOR splits with no delta logs
-     * fall back to native Parquet/ORC reader.
-     */
-    private void setHudiParams(TTableFormatFileDesc formatDesc,
-            ConnectorScanRange scanRange, TFileRangeDesc rangeDesc) {
-        Map<String, String> props = scanRange.getProperties();
-        org.apache.doris.thrift.THudiFileDesc fileDesc = new org.apache.doris.thrift.THudiFileDesc();
-
-        String fileFormat = scanRange.getFileFormat();
-        boolean isJni = "jni".equalsIgnoreCase(fileFormat);
-
-        // Dynamic format downgrade: if JNI but no delta logs, use native reader
-        if (isJni) {
-            String deltaLogs = props.get("hudi.delta_logs");
-            if (deltaLogs == null || deltaLogs.isEmpty()) {
-                String dataFilePath = props.getOrDefault("hudi.data_file_path", "");
-                if (!dataFilePath.isEmpty()) {
-                    String lower = dataFilePath.toLowerCase();
-                    if (lower.endsWith(".parquet")) {
-                        rangeDesc.setFormatType(TFileFormatType.FORMAT_PARQUET);
-                        isJni = false;
-                    } else if (lower.endsWith(".orc")) {
-                        rangeDesc.setFormatType(TFileFormatType.FORMAT_ORC);
-                        isJni = false;
-                    }
-                }
-            }
-        }
-
-        if (isJni) {
-            // JNI reader: full metadata needed for Hudi merge reader
-            fileDesc.setInstantTime(props.getOrDefault("hudi.instant_time", ""));
-            fileDesc.setSerde(props.getOrDefault("hudi.serde", ""));
-            fileDesc.setInputFormat(props.getOrDefault("hudi.input_format", ""));
-            fileDesc.setBasePath(props.getOrDefault("hudi.base_path", ""));
-            fileDesc.setDataFilePath(props.getOrDefault("hudi.data_file_path", ""));
-            fileDesc.setDataFileLength(
-                    Long.parseLong(props.getOrDefault("hudi.data_file_length", "0")));
-
-            String deltaLogs = props.get("hudi.delta_logs");
-            if (deltaLogs != null && !deltaLogs.isEmpty()) {
-                fileDesc.setDeltaLogs(Arrays.asList(deltaLogs.split(",")));
-            }
-            String colNames = props.get("hudi.column_names");
-            if (colNames != null && !colNames.isEmpty()) {
-                fileDesc.setColumnNames(Arrays.asList(colNames.split(",")));
-            }
-            String colTypes = props.get("hudi.column_types");
-            if (colTypes != null && !colTypes.isEmpty()) {
-                fileDesc.setColumnTypes(Arrays.asList(colTypes.split(",")));
-            }
+    @Override
+    public void createScanRangeLocations() throws UserException {
+        super.createScanRangeLocations();
+        // Delegate scan-level Thrift params to the connector SPI
+        ConnectorScanPlanProvider scanProvider = connector.getScanPlanProvider();
+        if (scanProvider != null) {
+            Map<String, String> props = getOrLoadScanNodeProperties();
+            scanProvider.populateScanLevelParams(params, props);
         }
+        pruneConjunctsFromNodeProperties();
 
-        formatDesc.setHudiParams(fileDesc);
-
-        // Set partition values for path-based partition extraction
-        Map<String, String> partValues = scanRange.getPartitionValues();
-        if (partValues != null && !partValues.isEmpty()) {
-            List<String> pathKeys = new ArrayList<>();
-            List<String> pathValues = new ArrayList<>();
-            for (Map.Entry<String, String> entry : partValues.entrySet()) {
-                pathKeys.add(entry.getKey());
-                pathValues.add(entry.getValue());
-            }
-            rangeDesc.setColumnsFromPathKeys(pathKeys);
-            rangeDesc.setColumnsFromPath(pathValues);
+        // Push down limit to ES via terminate_after optimization.
+        // When all predicates are pushed to ES (conjuncts empty) and limit fits in one batch,
+        // ES can use terminate_after to stop scanning early instead of scrolling all results.
+        if (limit > 0 && limit <= sessionVariable.batchSize && conjuncts.isEmpty()
+                && params.isSetEsProperties()) {
+            params.getEsProperties().put("limit", String.valueOf(limit));
         }
     }
 
+
     /**
-     * Sets Paimon-specific scan params via TPaimonFileDesc.
-     * Handles both JNI reader (serialized split) and native reader (file path) paths.
+     * Prunes pushed-down conjuncts using the structured result from
+     * {@link ConnectorScanPlanProvider#getScanNodePropertiesResult()}.
+     *
+     * <p>Only conjuncts whose indices are in the not-pushed set are retained.
+     * If the connector has no not-pushed tracking (empty set), all conjuncts
+     * are considered pushed and cleared.</p>
      */
-    private void setPaimonParams(TTableFormatFileDesc formatDesc,
-            ConnectorScanRange scanRange, TFileRangeDesc rangeDesc) {
-        Map<String, String> props = scanRange.getProperties();
-        TPaimonFileDesc fileDesc = new TPaimonFileDesc();
-
-        String paimonSplit = props.get("paimon.split");
-        if (paimonSplit != null) {
-            // JNI reader path
-            rangeDesc.setFormatType(TFileFormatType.FORMAT_JNI);
-            fileDesc.setPaimonSplit(paimonSplit);
-            String tableLocation = props.get("paimon.table_location");
-            if (tableLocation != null) {
-                fileDesc.setPaimonTable(tableLocation);
-            }
-            String weightStr = props.get("paimon.self_split_weight");
-            if (weightStr != null) {
-                rangeDesc.setSelfSplitWeight(Long.parseLong(weightStr));
-            }
-        } else {
-            // Native reader path — format already set by file extension
-            String fileFormat = scanRange.getFileFormat();
-            if ("orc".equals(fileFormat)) {
-                rangeDesc.setFormatType(TFileFormatType.FORMAT_ORC);
-            } else if ("parquet".equals(fileFormat)) {
-                rangeDesc.setFormatType(TFileFormatType.FORMAT_PARQUET);
-            }
-            String schemaIdStr = props.get("paimon.schema_id");
-            if (schemaIdStr != null) {
-                fileDesc.setSchemaId(Long.parseLong(schemaIdStr));
-            }
+    private void pruneConjunctsFromNodeProperties() {
+        if (conjuncts == null || conjuncts.isEmpty()) {
+            return;
         }
+        ScanNodePropertiesResult result = getOrLoadPropertiesResult();
 
-        fileDesc.setFileFormat(scanRange.getFileFormat());
-
-        // Deletion file
-        String deletionPath = props.get("paimon.deletion_file.path");
-        if (deletionPath != null) {
-            TPaimonDeletionFileDesc deletionFile = new TPaimonDeletionFileDesc();
-            deletionFile.setPath(deletionPath);
-            deletionFile.setOffset(Long.parseLong(
-                    props.getOrDefault("paimon.deletion_file.offset", "0")));
-            deletionFile.setLength(Long.parseLong(
-                    props.getOrDefault("paimon.deletion_file.length", "0")));
-            fileDesc.setDeletionFile(deletionFile);
+        if (!result.hasConjunctTracking()) {
+            // No conjunct tracking — do not prune (keep all conjuncts for safety)
+            return;
         }
 
-        // Row count for count pushdown
-        String rowCountStr = props.get("paimon.row_count");
-        if (rowCountStr != null) {
-            formatDesc.setTableLevelRowCount(Long.parseLong(rowCountStr));
+        // notPushedSet indices are relative to the filtered conjunct list
+        // (after CAST expr removal). Map them back to original conjunct indices.
+        Set<Integer> notPushedSet = result.getNotPushedConjunctIndices();
+        Set<Integer> originalNotPushed = new HashSet<>();
+        if (filteredToOriginalIndex != null) {
+            for (int filteredIdx : notPushedSet) {
+                if (filteredIdx < filteredToOriginalIndex.size()) {
+                    originalNotPushed.add(filteredToOriginalIndex.get(filteredIdx));
+                }
+            }
         } else {
-            formatDesc.setTableLevelRowCount(-1);
+            // No CAST filtering was applied — indices map 1:1
+            originalNotPushed.addAll(notPushedSet);
         }
 
-        formatDesc.setPaimonParams(fileDesc);
-
-        // Partition values
-        Map<String, String> partValues = scanRange.getPartitionValues();
-        if (partValues != null && !partValues.isEmpty()) {
-            List<String> pathKeys = new ArrayList<>();
-            List<String> pathValues = new ArrayList<>();
-            List<Boolean> pathIsNull = new ArrayList<>();
-            for (Map.Entry<String, String> entry : partValues.entrySet()) {
-                pathKeys.add(entry.getKey());
-                pathValues.add(entry.getValue() != null ? entry.getValue() : "");
-                pathIsNull.add(entry.getValue() == null);
+        // Also keep any conjuncts that were filtered out (CAST expressions)
+        // since those were never sent to the connector for pushdown
+        if (filteredToOriginalIndex != null) {
+            Set<Integer> sentToConnector = new HashSet<>(filteredToOriginalIndex);
+            for (int i = 0; i < conjuncts.size(); i++) {
+                if (!sentToConnector.contains(i)) {
+                    originalNotPushed.add(i);
+                }
             }
-            rangeDesc.setColumnsFromPathKeys(pathKeys);
-            rangeDesc.setColumnsFromPath(pathValues);
-            rangeDesc.setColumnsFromPathIsNull(pathIsNull);
         }
-    }
 
-    @Override
-    protected Optional<String> getSerializedTable() {
-        Map<String, String> props = getOrLoadScanNodeProperties();
-        String serializedTable = props.get("paimon.serialized_table");
-        if (serializedTable != null) {
-            return Optional.of(serializedTable);
+        List<Expr> remaining = new ArrayList<>();
+        for (int i = 0; i < conjuncts.size(); i++) {
+            if (originalNotPushed.contains(i)) {
+                remaining.add(conjuncts.get(i));
+            }
         }
-        return Optional.empty();
-    }
-
-    @Override
-    public void createScanRangeLocations() throws UserException {
-        super.createScanRangeLocations();
-        setPaimonScanLevelParams();
+        conjuncts.clear();
+        conjuncts.addAll(remaining);
     }
 
     /**
-     * Sets Paimon scan-level params (predicate + options) on the TFileScanRangeParams.
-     * These apply to all splits, not per-split.
+     * Lazily loads and caches the ScanNodePropertiesResult from the connector.
+     * Both getOrLoadScanNodeProperties() and pruneConjunctsFromNodeProperties()
+     * use this to avoid redundant computation.
      */
-    private void setPaimonScanLevelParams() {
-        Map<String, String> props = getOrLoadScanNodeProperties();
-        String predicate = props.get("paimon.predicate");
-        if (predicate != null) {
-            params.setPaimonPredicate(predicate);
-        }
-
-        String optionsJson = props.get("paimon.options_json");
-        if (optionsJson != null && !optionsJson.isEmpty()) {
-            try {
-                @SuppressWarnings("unchecked")
-                Map<String, String> options = new com.fasterxml.jackson.databind.ObjectMapper()
-                        .readValue(optionsJson,
-                                new com.fasterxml.jackson.core.type.TypeReference<Map<String, String>>() {});
-                params.setPaimonOptions(options);
-            } catch (Exception e) {
-                LOG.warn("Failed to parse paimon.options_json, using empty map", e);
+    private ScanNodePropertiesResult getOrLoadPropertiesResult() {
+        if (cachedPropertiesResult == null) {
+            ConnectorScanPlanProvider scanProvider = connector.getScanPlanProvider();
+            if (scanProvider != null) {
+                List<ConnectorColumnHandle> columns = buildColumnHandles();
+                Optional<ConnectorExpression> filter = buildRemainingFilter();
+                cachedPropertiesResult = scanProvider.getScanNodePropertiesResult(
+                        connectorSession, currentHandle, columns, filter);
+            }
+            if (cachedPropertiesResult == null) {
+                cachedPropertiesResult = new ScanNodePropertiesResult(Collections.emptyMap());
             }
         }
+        return cachedPropertiesResult;
     }
 
     /**
@@ -719,13 +510,7 @@ public class PluginDrivenScanNode extends FileQueryScanNode {
      */
     private Map<String, String> getOrLoadScanNodeProperties() {
         if (scanNodeProperties == null) {
-            ConnectorScanPlanProvider scanProvider = connector.getScanPlanProvider();
-            if (scanProvider != null) {
-                List<ConnectorColumnHandle> columns = buildColumnHandles();
-                Optional<ConnectorExpression> filter = buildRemainingFilter();
-                scanNodeProperties = scanProvider.getScanNodeProperties(
-                        connectorSession, currentHandle, columns, filter);
-            }
+            scanNodeProperties = getOrLoadPropertiesResult().getProperties();
             if (scanNodeProperties == null) {
                 scanNodeProperties = Collections.emptyMap();
             }
@@ -749,6 +534,8 @@ public class PluginDrivenScanNode extends FileQueryScanNode {
                 return TFileFormatType.FORMAT_JSON;
             case "avro":
                 return TFileFormatType.FORMAT_AVRO;
+            case "es_http":
+                return TFileFormatType.FORMAT_ES_HTTP;
             default:
                 return TFileFormatType.FORMAT_JNI;
         }
@@ -793,14 +580,26 @@ public class PluginDrivenScanNode extends FileQueryScanNode {
      */
     private Optional<ConnectorExpression> buildRemainingFilter() {
         if (conjuncts == null || conjuncts.isEmpty()) {
+            filteredToOriginalIndex = null;
             return Optional.empty();
         }
         List<Expr> pushableConjuncts = conjuncts;
         ConnectorMetadata metadata = connector.getMetadata(connectorSession);
         if (!metadata.supportsCastPredicatePushdown(connectorSession)) {
-            pushableConjuncts = conjuncts.stream()
-                    .filter(expr -> !containsCastExpr(expr))
-                    .collect(Collectors.toList());
+            filteredToOriginalIndex = new ArrayList<>();
+            pushableConjuncts = new ArrayList<>();
+            for (int i = 0; i < conjuncts.size(); i++) {
+                if (!containsCastExpr(conjuncts.get(i))) {
+                    pushableConjuncts.add(conjuncts.get(i));
+                    filteredToOriginalIndex.add(i);
+                }
+            }
+            // If no filtering occurred, clear the mapping (1:1)
+            if (filteredToOriginalIndex.size() == conjuncts.size()) {
+                filteredToOriginalIndex = null;
+            }
+        } else {
+            filteredToOriginalIndex = null;
         }
         if (pushableConjuncts.isEmpty()) {
             return Optional.empty();
diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
index af77e3a6417..aaa1b00309f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
@@ -48,11 +48,9 @@ import org.apache.doris.connector.api.ConnectorMetadata;
 import org.apache.doris.connector.api.ConnectorSession;
 import org.apache.doris.connector.api.ConnectorType;
 import org.apache.doris.connector.api.handle.ConnectorTableHandle;
-import org.apache.doris.connector.api.scan.ConnectorScanRangeType;
 import org.apache.doris.connector.api.write.ConnectorWriteConfig;
 import org.apache.doris.datasource.ExternalTable;
 import org.apache.doris.datasource.FileQueryScanNode;
-import org.apache.doris.datasource.PluginDrivenEsScanNode;
 import org.apache.doris.datasource.PluginDrivenExternalCatalog;
 import org.apache.doris.datasource.PluginDrivenExternalTable;
 import org.apache.doris.datasource.PluginDrivenScanNode;
@@ -797,17 +795,9 @@ public class PhysicalPlanTranslator extends DefaultPlanVisitor<PlanFragment, Pla
         } else if (table instanceof PluginDrivenExternalTable) {
             PluginDrivenExternalCatalog pluginCatalog =
                     (PluginDrivenExternalCatalog) table.getCatalog();
-            ConnectorScanRangeType scanType = pluginCatalog.getConnector()
-                    .getScanPlanProvider().getScanRangeType();
-            if (scanType == ConnectorScanRangeType.ES_SCAN) {
-                scanNode = PluginDrivenEsScanNode.create(context.nextPlanNodeId(),
-                        tupleDescriptor, context.getScanContext(), pluginCatalog,
-                        (PluginDrivenExternalTable) table);
-            } else {
-                scanNode = PluginDrivenScanNode.create(context.nextPlanNodeId(), tupleDescriptor,
-                        false, sv, context.getScanContext(), pluginCatalog,
-                        ((PluginDrivenExternalTable) table));
-            }
+            scanNode = PluginDrivenScanNode.create(context.nextPlanNodeId(), tupleDescriptor,
+                    false, sv, context.getScanContext(), pluginCatalog,
+                    ((PluginDrivenExternalTable) table));
         } else {
             throw new RuntimeException("do not support table type " + table.getType());
         }
diff --git a/gensrc/thrift/PlanNodes.thrift b/gensrc/thrift/PlanNodes.thrift
index 93a5e0c660d..843087ff45a 100644
--- a/gensrc/thrift/PlanNodes.thrift
+++ b/gensrc/thrift/PlanNodes.thrift
@@ -113,7 +113,8 @@ enum TFileFormatType {
     FORMAT_ARROW = 16,
     FORMAT_TEXT = 17,
     FORMAT_NATIVE = 18,
-    FORMAT_LANCE = 19
+    FORMAT_LANCE = 19,
+    FORMAT_ES_HTTP = 20
 }
 
 // In previous versions, the data compression format and file format were stored together, as TFileFormatType,
@@ -450,6 +451,9 @@ struct TTableFormatFileDesc {
     // JDBC connection parameters (used when table_format_type == "jdbc")
     11: optional map<string, string> jdbc_params
     12: optional TLanceFileDesc lance_params
+    // ES per-shard parameters (used when table_format_type == "es")
+    // Contains: index, type, shard_id, host_port, es_hosts
+    13: optional map<string, string> es_params
 }
 
 // Deprecated, hive text talbe is a special format, not a serde type
@@ -526,6 +530,12 @@ struct TFileScanRangeParams {
     // Paimon options from FE, used for jni/native scanner
     // Set at ScanNode level to avoid redundant serialization in each split
     30: optional map<string, string> paimon_options
+    // ES node-level properties (query_dsl, auth, doc_values_mode, etc.)
+    31: optional map<string, string> es_properties
+    // ES docvalue field→docvalue_type mappings
+    32: optional map<string, string> es_docvalue_context
+    // ES fields field→keyword mappings
+    33: optional map<string, string> es_fields_context
 }
 
 struct TFileRangeDesc {
diff --git a/regression-test/suites/external_table_p0/es/test_es_query_predicate_correctness.groovy b/regression-test/suites/external_table_p0/es/test_es_query_predicate_correctness.groovy
index 344c8ef8332..ccf84e9fc7f 100644
--- a/regression-test/suites/external_table_p0/es/test_es_query_predicate_correctness.groovy
+++ b/regression-test/suites/external_table_p0/es/test_es_query_predicate_correctness.groovy
@@ -83,6 +83,61 @@ suite("test_es_query_predicate_correctness", "p0,external") {
         order_qt_es8_is_not_null """select count(*) from test1 where message is not null"""
         order_qt_es8_total_count """select count(*) from test1"""
 
+        // ======================================================================
+        // Limit pushdown / terminate_after tests (ES 7)
+        // Verifies that LIMIT queries push terminate_after to ES when all
+        // predicates are pushed down, and that EXPLAIN shows the optimization.
+        // ======================================================================
+        sql """switch es7_pred_test"""
+
+        // Case 1: Simple LIMIT without WHERE - all predicates trivially pushed
+        // EXPLAIN should show "ES terminate_after: 5"
+        explain {
+            sql("select * from test1 limit 5")
+            contains "ES terminate_after: 5"
+        }
+
+        // Case 2: LIMIT with fully-pushable predicate (equality on keyword field)
+        // After predicate pushdown, conjuncts should be empty → terminate_after active
+        explain {
+            sql("select * from test1 where test1 = 'string1' limit 3")
+            contains "ES terminate_after: 3"
+        }
+
+        // Case 3: No LIMIT → no terminate_after
+        explain {
+            sql("select * from test1")
+            notContains "ES terminate_after"
+        }
+
+        // Case 4: Verify data correctness with LIMIT
+        // The result count should be <= the limit value
+        def limitResult = sql """select count(*) from (select * from test1 limit 5) t"""
+        assertTrue(limitResult[0][0] as int <= 5, "LIMIT 5 should return at most 5 rows")
+
+        // ======================================================================
+        // Limit pushdown / terminate_after tests (ES 8)
+        // ======================================================================
+        sql """switch es8_pred_test"""
+
+        explain {
+            sql("select * from test1 limit 5")
+            contains "ES terminate_after: 5"
+        }
+
+        explain {
+            sql("select * from test1 where test1 = 'string1' limit 3")
+            contains "ES terminate_after: 3"
+        }
+
+        explain {
+            sql("select * from test1")
+            notContains "ES terminate_after"
+        }
+
+        def limitResult8 = sql """select count(*) from (select * from test1 limit 5) t"""
+        assertTrue(limitResult8[0][0] as int <= 5, "LIMIT 5 should return at most 5 rows")
+
         // cleanup
         sql """drop catalog if exists es7_pred_test;"""
         sql """drop catalog if exists es8_pred_test;"""


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org