Skip to content

Commit

Permalink
modify version control for direct-load partition (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
medcll authored Nov 20, 2024
1 parent 684a44e commit d524ae3
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class ObDirectLoadProtocolV0 implements ObDirectLoadProtocol {

public static final long OB_VERSION_4_3_2_0 = ObGlobal.calcVersion(4, (short) 3,
(byte) 2, (byte) 0);
public static final long OB_VERSION_4_3_5_0 = ObGlobal.calcVersion(4, (short) 3,
(byte) 5, (byte) 0);

private static final int PROTOCOL_VERSION = 0;
private final ObDirectLoadLogger logger;
Expand Down Expand Up @@ -63,12 +65,14 @@ public void checkIsSupported(ObDirectLoadStatement statement) throws ObDirectLoa
+ " is not supported, minimum version required is "
+ ObGlobal.getObVsnString(OB_VERSION_4_3_2_0));
}
} else if (statement.getPartitionNames().length > 0) {
} else if (obVersion < OB_VERSION_4_3_5_0 && statement.getPartitionNames().length > 0) {
logger.warn("partition names in ob version " + ObGlobal.getObVsnString(obVersion)
+ "is not supported");
+ "is not supported, minimum version required is "
+ ObGlobal.getObVsnString(OB_VERSION_4_3_5_0));
throw new ObDirectLoadNotSupportedException("partition names in ob version "
+ ObGlobal.getObVsnString(obVersion)
+ " is not supported");
+ ObGlobal.getObVsnString(obVersion)
+ " is not supported, minimum version required is "
+ ObGlobal.getObVsnString(OB_VERSION_4_3_5_0));
}
}

Expand Down

0 comments on commit d524ae3

Please sign in to comment.