This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 091d904f831 branch-4.0: [fix](nereids) fix copy into load orc/parquet
format fail (#57362) (#58552)
091d904f831 is described below
commit 091d904f831356e7675c6ff3c98345e0680759fc
Author: hui lai <[email protected]>
AuthorDate: Tue Dec 2 10:09:44 2025 +0800
branch-4.0: [fix](nereids) fix copy into load orc/parquet format fail
(#57362) (#58552)
pick https://github.com/apache/doris/pull/57362
introduced by https://github.com/apache/doris/issues/50471
Fix copy into load orc/parquet format fail:
```
mysql> copy into orc_test from (select p_partkey, p_name,
p_mfgr, p_brand, p_type, p_size from
@regression_test_customer('copy_into/orc/part.orc') ) properties
('file.type' = 'orc', 'copy.async' = 'false');
ERROR 1105 (HY000): errCode = 2, detailMessage = Cannot invoke
"String.toLowerCase()" because the return value of "java.util.Map.get(Object)"
is null
```
None
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change. - [ ] No code files have been
changed. - [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
.../apache/doris/nereids/trees/plans/commands/info/CopyIntoInfo.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CopyIntoInfo.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CopyIntoInfo.java
index a97149569b6..f0fc2630500 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CopyIntoInfo.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CopyIntoInfo.java
@@ -266,7 +266,10 @@ public class CopyIntoInfo {
analyzer, context, cascadesContext);
}
- dataDescProperties.put(FileFormatProperties.PROP_COMPRESS_TYPE,
copyIntoProperties.getCompression());
+ String compression = copyIntoProperties.getCompression();
+ if (compression != null) {
+ dataDescProperties.put(FileFormatProperties.PROP_COMPRESS_TYPE,
compression);
+ }
dataDescription = new DataDescription(tableName.getTbl(), null,
Lists.newArrayList(filePath),
copyFromDesc.getFileColumns(), separator, fileFormatStr, null,
false,
legacyColumnMappingList, legacyFileFilterExpr, null,
LoadTask.MergeType.APPEND, null,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]