You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/11/22 01:04:16 UTC

[GitHub] [doris] wsjz opened a new pull request, #14470: [fix](iceberg-v2) icebergv2 filter data path

wsjz opened a new pull request, #14470:
URL: https://github.com/apache/doris/pull/14470

   # Proposed changes
   
   Issue Number: close #xxx
   
   ## Problem summary
   
   Describe your changes.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: 
       - [ ] Yes
       - [ ] No
       - [ ] I don't know
   2. Has unit tests been added:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   3. Has document been added or modified:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   4. Does it need to update dependencies:
       - [ ] Yes
       - [ ] No
   5. Are there any changes that cannot be rolled back:
       - [ ] Yes (If Yes, please explain WHY)
       - [ ] No
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] morningman commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
morningman commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1046824895


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -59,13 +75,21 @@
 public class IcebergScanProvider extends HiveScanProvider {
 
     private static final int MIN_DELETE_FILE_SUPPORT_VERSION = 2;
+    public static final String V2_DELETE_TBL = "iceberg#delete#tbl";
+    public static final String V2_DELETE_DB = "iceberg#delete#db";
+    private static final DeleteFileTempTable scanDeleteTable =
+            new DeleteFileTempTable(TableIf.TableType.HMS_EXTERNAL_TABLE);
+    private BaseTableRef tableRef;

Review Comment:
   Remove this `tableRef`



##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergSplit.java:
##########
@@ -28,8 +31,11 @@ public IcebergSplit(Path file, long start, long length, String[] hosts) {
         super(file, start, length, hosts);
     }
 
+    private Analyzer analyzer;
     private String dataFilePath;
     private Integer formatVersion;
+    private BaseTableRef baseTableRef;
+    private IcebergScanProvider.DeleteFileTempTable deleteFileTable;

Review Comment:
   Remove `deleteFileTable`, you can get it from `BaseTableRef `



##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergSplit.java:
##########
@@ -28,8 +31,11 @@ public IcebergSplit(Path file, long start, long length, String[] hosts) {
         super(file, start, length, hosts);
     }
 
+    private Analyzer analyzer;
     private String dataFilePath;
     private Integer formatVersion;
+    private BaseTableRef baseTableRef;

Review Comment:
   ```suggestion
       private BaseTableRef deleteTableRef;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] morningman commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
morningman commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1042362877


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -136,16 +177,33 @@ public List<InputSplit> getSplits(List<Expr> exprs) throws UserException {
         List<InputSplit> splits = new ArrayList<>();
 
         int formatVersion = ((BaseTable) table).operations().current().formatVersion();
+        DeleteFileTempTable deleteFileTable = null;
+        if (formatVersion >= MIN_DELETE_FILE_SUPPORT_VERSION) {
+            String dbName = ClusterNamespace.getFullName(analyzer.getClusterName(), hmsTable.getDbName());
+            deleteFileTable = new DeleteFileTempTable(hmsTable.getCatalog(),

Review Comment:
   You don't need to create `DeleteFileTempTable` for every split.
   You can just create a final static member of this table somewhere, Because it just save a schema of delete file.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1044090985


##########
be/src/vec/exec/format/table/iceberg_reader.h:
##########
@@ -23,22 +23,25 @@
 
 #include "table_format_reader.h"
 #include "vec/exec/format/generic_reader.h"
+#include "vec/exprs/vexpr.h"
 
 namespace doris::vectorized {
 
 class IcebergTableReader : public TableFormatReader {
 public:
     IcebergTableReader(GenericReader* file_format_reader, RuntimeProfile* profile,
-                       RuntimeState* state, const TFileScanRangeParams& params)
-            : TableFormatReader(file_format_reader),
-              _profile(profile),
-              _state(state),
-              _params(params) {}
-    Status init_row_filters();
-    void filter_rows() override;
+                       RuntimeState* state, const TFileScanRangeParams& params);
+    ~IcebergTableReader();

Review Comment:
   warning: annotate this function with 'override' or (rarely) 'final' [modernize-use-override]
   
   ```suggestion
       ~IcebergTableReader() override;
   ```
   



##########
be/src/vec/exec/format/table/iceberg_reader.h:
##########
@@ -51,14 +54,23 @@
         int64_t total_file_rows = 0;
     };
 
+private:
+    struct IcebergProfile {
+        RuntimeProfile::Counter* _delete_files_init_time;
+        RuntimeProfile::Counter* _delete_files_read_total_time;
+    };
+
 private:

Review Comment:
   warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
   
   ```suggestion
   
   ```
   **be/src/vec/exec/format/table/iceberg_reader.h:56:** previously declared here
   ```cpp
   private:
   ^
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1047034939


##########
be/src/vec/exec/format/table/table_format_reader.h:
##########
@@ -29,6 +29,7 @@ namespace doris::vectorized {
 class TableFormatReader : public GenericReader {
 public:
     TableFormatReader(GenericReader* file_format_reader);
+    virtual ~TableFormatReader() = default;

Review Comment:
   warning: prefer using 'override' or (rarely) 'final' instead of 'virtual' [modernize-use-override]
   
   ```suggestion
       ~TableFormatReader() override = default;
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #14470:
URL: https://github.com/apache/doris/pull/14470#issuecomment-1349592924

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] morningman commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
morningman commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1035958996


##########
be/src/vec/exec/format/table/iceberg_reader.cpp:
##########
@@ -122,6 +144,16 @@ Status IcebergTableReader::init_row_filters() {
         auto files = table_desc.delete_files;
         if (delete_file_type == POSITON_DELELE) {
             // position delete
+            auto row_desc = RowDescriptor(_state->desc_tbl(),
+                                          std::vector<TupleId>({table_desc.delete_table_tuple_id}),
+                                          std::vector<bool>({false}));
+            if (_data_path_conjunct_ctx == nullptr) {

Review Comment:
   No need to check `if (_data_path_conjunct_ctx == nullptr)`, it must be null here.



##########
be/src/vec/exec/format/table/iceberg_reader.cpp:
##########
@@ -134,17 +166,32 @@ Status IcebergTableReader::init_row_filters() {
                 ParquetReader* delete_reader = new ParquetReader(
                         _profile, _params, delete_range, _state->query_options().batch_size,
                         const_cast<cctz::time_zone*>(&_state->timezone_obj()));
-                FileMetaData* metadata = nullptr;
-                RETURN_IF_ERROR(delete_reader->file_metadata(&metadata));
-
-                auto& delete_file_schema = metadata->schema();
+                if (_delete_file_schema == nullptr) {
+                    FileMetaData* metadata = nullptr;
+                    RETURN_IF_ERROR(delete_reader->file_metadata(&metadata));
+                    if (metadata == nullptr) {
+                        break;
+                    }
+                    _delete_file_schema.reset(&metadata->schema());
+                    int num_of_col = _delete_file_schema->size();
+                    for (auto i = 0; i < num_of_col; ++i) {
+                        const FieldSchema* field = _delete_file_schema->get_column(i);
+                        _column_schemas.emplace_back(field);
+                    }
+                }
+                DCHECK_EQ(_column_schemas.size(), _delete_file_schema->size());
                 vector<std::string> names;
-                for (auto i = 0; i < delete_file_schema.size(); ++i) {
-                    const FieldSchema* field = delete_file_schema.get_column(i);
-                    _column_schemas.emplace_back(field);
+                for (const FieldSchema* field : _column_schemas) {

Review Comment:
   This `for (const FieldSchema* field : _column_schemas)` can also be done only once.
   Because all delete files have same column names.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #14470:
URL: https://github.com/apache/doris/pull/14470#issuecomment-1352469807

   PR approved by at least one committer and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] morningman commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
morningman commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1034900880


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -143,9 +184,14 @@ public List<InputSplit> getSplits(List<Expr> exprs) throws UserException {
                         spitTask.length(), new String[0]);
                 split.setFormatVersion(formatVersion);
                 if (formatVersion == 2) {
+                    String dbName = ClusterNamespace.getFullName(analyzer.getClusterName(), hmsTable.getDbName());
+                    DeleteFileTempTable deleteFileTable = new DeleteFileTempTable(hmsTable.getCatalog(),

Review Comment:
   No need to new `DeleteFileTempTable` for every split.
   Actually, there can be only one `DeleteFileTempTable` in a Catalog.
   And its name can be `iceberg_v2_delete_table`.



##########
gensrc/thrift/PlanNodes.thrift:
##########
@@ -268,7 +268,10 @@ struct TIcebergFileDesc {
     1: optional i32 format_version;
     // Iceberg file type, 0: data, 1: position delete, 2: equality delete.
     2: optional i32 content;
-    3: optional list<TIcebergDeleteFileDesc> delete_files;
+    // When open a delete file, filter the data file path with the 'file_path' property
+    3: optional Exprs.TExpr file_select_conjunct;
+    4: optional Types.TTupleId tuple_id;

Review Comment:
   better use a concrete name, eg: `delete_table_tuple_id`



##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -102,6 +124,25 @@ public static void setIcebergParams(ExternalFileScanNode.ParamCreateContext cont
         context.params.setTableFormatParams(tableFormatFileDesc);
     }
 
+    private static void setPathSelectConjunct(TIcebergFileDesc fileDesc, IcebergSplit icebergSplit)
+                throws UserException {
+        DeleteFileTempTable deleteFileTable = icebergSplit.getDeleteFileTable();
+        DescriptorTable descTbl = icebergSplit.getAnalyzer().getDescTbl();
+        TableRef ref = new TableRef(deleteFileTable.getTableName(), null, null);
+        BaseTableRef tableRef = new BaseTableRef(ref, deleteFileTable, deleteFileTable.getTableName());
+        tableRef.analyze(icebergSplit.getAnalyzer());
+        fileDesc.setTupleId(tableRef.getDesc().getId().asInt());
+        descTbl.computeStatAndMemLayout();
+
+        SlotRef lhs = new SlotRef(deleteFileTable.getTableName(), DeleteFileTempTable.DATA_FILE_PATH);
+        lhs.analyze(icebergSplit.getAnalyzer());

Review Comment:
   No need to analyze `lhs` separately.
   You can just analyze `pathSelectConjunct`.



##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/QueryScanProvider.java:
##########
@@ -92,6 +89,10 @@ public void createScanRangeLocations(ParamCreateContext context, BackendPolicy b
                 THdfsParams tHdfsParams = BrokerUtil.generateHdfsParam(locationProperties);
                 tHdfsParams.setFsName(fsName);
                 context.params.setHdfsParams(tHdfsParams);
+                // external data lake table
+                if (inputSplit instanceof IcebergSplit) {

Review Comment:
   Why moving to here?
   What if the file is on S3?



##########
be/src/vec/exec/format/table/iceberg_reader.h:
##########
@@ -55,10 +62,11 @@ class IcebergTableReader : public TableFormatReader {
     RuntimeProfile* _profile;
     RuntimeState* _state;
     const TFileScanRangeParams& _params;
-    std::vector<const FieldSchema*> _column_schemas;
+    std::set<const FieldSchema*> _column_schemas;

Review Comment:
   Why using `set`?



##########
be/src/vec/exec/format/table/iceberg_reader.cpp:
##########
@@ -139,12 +159,32 @@ Status IcebergTableReader::init_row_filters() {
 
                 auto& delete_file_schema = metadata->schema();
                 vector<std::string> names;
-                for (auto i = 0; i < delete_file_schema.size(); ++i) {
+                int num_of_col = delete_file_schema.size();
+                for (auto i = 0; i < num_of_col; ++i) {
                     const FieldSchema* field = delete_file_schema.get_column(i);
-                    _column_schemas.emplace_back(field);
+                    if (_column_schemas.size() < num_of_col) {
+                        _column_schemas.emplace(field);
+                    }
                     names.emplace_back(field->name);
                 }
-                Status d_st = delete_reader->init_reader(names, false);
+                auto row_desc = RowDescriptor(_state->desc_tbl(),

Review Comment:
   line 170-179 should be done outside the `for (auto& delete_file : files)`



##########
be/src/vec/exec/format/table/iceberg_reader.cpp:
##########
@@ -139,12 +159,32 @@ Status IcebergTableReader::init_row_filters() {
 
                 auto& delete_file_schema = metadata->schema();
                 vector<std::string> names;
-                for (auto i = 0; i < delete_file_schema.size(); ++i) {
+                int num_of_col = delete_file_schema.size();

Review Comment:
   All delete files have same schema. Maybe we can just read one of them to get file schema.
   To avoid read all files' metadata duplicately.



##########
be/src/vec/exec/format/table/iceberg_reader.cpp:
##########
@@ -110,6 +121,15 @@ void IcebergTableReader::filter_rows() {
             }
         }
     }
+    if (!delete_row_ranges.empty()) {

Review Comment:
   Use `VLOG(3)` level. And wrap the whole `if` block with `if (VLOG_IS_ON(3))`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #14470:
URL: https://github.com/apache/doris/pull/14470#issuecomment-1350604796

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #14470:
URL: https://github.com/apache/doris/pull/14470#issuecomment-1352469832

   PR approved by anyone and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] morningman merged pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
morningman merged PR #14470:
URL: https://github.com/apache/doris/pull/14470


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] morningman commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
morningman commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1046770808


##########
gensrc/thrift/PlanNodes.thrift:
##########
@@ -268,7 +268,10 @@ struct TIcebergFileDesc {
     1: optional i32 format_version;
     // Iceberg file type, 0: data, 1: position delete, 2: equality delete.
     2: optional i32 content;
-    3: optional list<TIcebergDeleteFileDesc> delete_files;
+    // When open a delete file, filter the data file path with the 'file_path' property
+    3: optional Exprs.TExpr file_select_conjunct;

Review Comment:
   Do not change the origin order



##########
gensrc/thrift/PlanNodes.thrift:
##########
@@ -308,10 +311,8 @@ struct TFileScanRangeParams {
     14: optional list<Types.TNetworkAddress> broker_addresses
     15: optional TFileAttributes file_attributes
     16: optional Exprs.TExpr pre_filter_exprs
-    // For data lake table format
-    17: optional TTableFormatFileDesc table_format_params
     // For csv query task, same the column index in file, order by dest_tuple
-    18: optional list<i32> column_idxs
+    17: optional list<i32> column_idxs

Review Comment:
   do not change order.
   If you want to delete a optional field, just delete it.



##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -134,18 +173,27 @@ public List<InputSplit> getSplits(List<Expr> exprs) throws UserException {
             scan = scan.filter(predicate);
         }
         List<InputSplit> splits = new ArrayList<>();
-
         int formatVersion = ((BaseTable) table).operations().current().formatVersion();
+        if (formatVersion >= MIN_DELETE_FILE_SUPPORT_VERSION) {
+            TableName fullName = analyzer.getFqTableName(scanDeleteTable.getTableName());
+            fullName.analyze(analyzer);
+            TableRef ref = new TableRef(fullName, fullName.toString(), null);
+            BaseTableRef tableRef = new BaseTableRef(ref, scanDeleteTable, scanDeleteTable.getTableName());
+            tableRef.analyze(analyzer);
+            scanDeleteTable.setBaseTableRef(tableRef);

Review Comment:
   Can not set base table ref to a static member



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #14470:
URL: https://github.com/apache/doris/pull/14470#issuecomment-1350443969

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] github-actions[bot] commented on pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #14470:
URL: https://github.com/apache/doris/pull/14470#issuecomment-1352035249

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] wsjz commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
wsjz commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1035444816


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -102,6 +124,25 @@ public static void setIcebergParams(ExternalFileScanNode.ParamCreateContext cont
         context.params.setTableFormatParams(tableFormatFileDesc);
     }
 
+    private static void setPathSelectConjunct(TIcebergFileDesc fileDesc, IcebergSplit icebergSplit)
+                throws UserException {
+        DeleteFileTempTable deleteFileTable = icebergSplit.getDeleteFileTable();
+        DescriptorTable descTbl = icebergSplit.getAnalyzer().getDescTbl();
+        TableRef ref = new TableRef(deleteFileTable.getTableName(), null, null);
+        BaseTableRef tableRef = new BaseTableRef(ref, deleteFileTable, deleteFileTable.getTableName());
+        tableRef.analyze(icebergSplit.getAnalyzer());
+        fileDesc.setTupleId(tableRef.getDesc().getId().asInt());
+        descTbl.computeStatAndMemLayout();
+
+        SlotRef lhs = new SlotRef(deleteFileTable.getTableName(), DeleteFileTempTable.DATA_FILE_PATH);
+        lhs.analyze(icebergSplit.getAnalyzer());

Review Comment:
   because we must use  lhs.getDesc().setIsMaterialized(true), so analyze it first



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] wsjz commented on a diff in pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
wsjz commented on code in PR #14470:
URL: https://github.com/apache/doris/pull/14470#discussion_r1035444816


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/IcebergScanProvider.java:
##########
@@ -102,6 +124,25 @@ public static void setIcebergParams(ExternalFileScanNode.ParamCreateContext cont
         context.params.setTableFormatParams(tableFormatFileDesc);
     }
 
+    private static void setPathSelectConjunct(TIcebergFileDesc fileDesc, IcebergSplit icebergSplit)
+                throws UserException {
+        DeleteFileTempTable deleteFileTable = icebergSplit.getDeleteFileTable();
+        DescriptorTable descTbl = icebergSplit.getAnalyzer().getDescTbl();
+        TableRef ref = new TableRef(deleteFileTable.getTableName(), null, null);
+        BaseTableRef tableRef = new BaseTableRef(ref, deleteFileTable, deleteFileTable.getTableName());
+        tableRef.analyze(icebergSplit.getAnalyzer());
+        fileDesc.setTupleId(tableRef.getDesc().getId().asInt());
+        descTbl.computeStatAndMemLayout();
+
+        SlotRef lhs = new SlotRef(deleteFileTable.getTableName(), DeleteFileTempTable.DATA_FILE_PATH);
+        lhs.analyze(icebergSplit.getAnalyzer());

Review Comment:
   because we should use  lhs.getDesc().setIsMaterialized(true);



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [doris] hello-stephen commented on pull request #14470: [fix](iceberg-v2) icebergv2 filter data path

Posted by GitBox <gi...@apache.org>.
hello-stephen commented on PR #14470:
URL: https://github.com/apache/doris/pull/14470#issuecomment-1330527260

   TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 35.12 seconds
    load time: 431 seconds
    storage size: 17123343189 Bytes
    https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221129120617_clickbench_pr_55004.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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