-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
使用JSON Splitter拆分记录中的JSON字段内容出错, modify for #390
- Loading branch information
1 parent
df9ae92
commit 97994ba
Showing
18 changed files
with
213 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
datax-config/src/main/java/com/alibaba/datax/common/element/NullColumn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/** | ||
* 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 | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* 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 com.alibaba.datax.common.element; | ||
|
||
import java.math.BigDecimal; | ||
import java.math.BigInteger; | ||
import java.util.Date; | ||
|
||
/** | ||
* @author: 百岁(baisui@qlangtech.com) | ||
* @create: 2024-11-05 12:33 | ||
**/ | ||
public class NullColumn extends Column { | ||
NullColumn() { | ||
super(null, Type.NULL, 0); | ||
} | ||
|
||
@Override | ||
public Long asLong() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public Double asDouble() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public String asString() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public Date asDate() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public Date asDate(String dateFormat) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public byte[] asBytes() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public Boolean asBoolean() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public BigDecimal asBigDecimal() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public BigInteger asBigInteger() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
datax-config/src/main/java/com/qlangtech/tis/plugin/datax/transformer/OutputParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* 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 com.qlangtech.tis.plugin.datax.transformer; | ||
|
||
import com.qlangtech.tis.plugin.ds.DataType; | ||
import com.qlangtech.tis.plugin.ds.IColMetaGetter; | ||
|
||
/** | ||
* @author: 百岁(baisui@qlangtech.com) | ||
* @create: 2024-06-22 11:15 | ||
**/ | ||
public class OutputParameter implements IColMetaGetter { | ||
private final String name; | ||
private final boolean virtual; | ||
private final DataType type; | ||
|
||
public static OutputParameter create(String rename, boolean isVirtual, DataType type) { | ||
return new OutputParameter(rename, isVirtual, type); | ||
} | ||
|
||
private OutputParameter(String name, boolean virtual, DataType type) { | ||
this.name = name; | ||
this.virtual = virtual; | ||
this.type = type; | ||
} | ||
|
||
@Override | ||
public boolean isPk() { | ||
return false; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public boolean isVirtual() { | ||
return this.virtual; | ||
} | ||
|
||
public DataType getType() { | ||
return type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.