mirror of
https://github.com/apache/sqoop.git
synced 2025-05-17 09:20:43 +08:00
SQOOP-1136. Sqoop2: MBooleanInput should copy persistenceId when cloning.
(Mengwei Ding via Hari Shreedharan)
This commit is contained in:
parent
2e196a8419
commit
4997f97bc3
@ -74,6 +74,7 @@ public void setEmpty() {
|
|||||||
@Override
|
@Override
|
||||||
public Object clone(boolean cloneWithValue) {
|
public Object clone(boolean cloneWithValue) {
|
||||||
MBooleanInput copy = new MBooleanInput(getName(), isSensitive());
|
MBooleanInput copy = new MBooleanInput(getName(), isSensitive());
|
||||||
|
copy.setPersistenceId(this.getPersistenceId());
|
||||||
if(cloneWithValue) {
|
if(cloneWithValue) {
|
||||||
copy.setValue(getValue());
|
copy.setValue(getValue());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user