Skip to content

Commit 7c9bb46

Browse files
author
chengyitian
committed
AJ-428: fix regression testing issues.
1 parent 7fb95a4 commit 7c9bb46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/com/xxdb/data/BasicDecimal128Vector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public Entity get(int index) {
275275

276276
@Override
277277
public void set(int index, Entity value) throws Exception {
278-
if (!value.isScalar() || value.getDataType() != DT_DECIMAL128) {
278+
if (!value.getDataForm().equals(DATA_FORM.DF_SCALAR) || value.getDataType() != DT_DECIMAL128) {
279279
throw new RuntimeException("The value type is not BasicDecimal128!");
280280
}
281281

src/com/xxdb/data/BasicDecimal32Vector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public Entity get(int index) {
182182

183183
@Override
184184
public void set(int index, Entity value) throws Exception {
185-
if (!value.isScalar() && value.getDataType() != DT_DECIMAL32) {
185+
if (!value.getDataForm().equals(DATA_FORM.DF_SCALAR) || value.getDataType() != DT_DECIMAL32) {
186186
throw new RuntimeException("value type is not BasicDecimal32!");
187187
}
188188

src/com/xxdb/data/BasicDecimal64Vector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public Entity get(int index) {
189189

190190
@Override
191191
public void set(int index, Entity value) throws Exception {
192-
if (!value.isScalar() && value.getDataType() != DT_DECIMAL64) {
192+
if (!value.getDataForm().equals(DATA_FORM.DF_SCALAR) || value.getDataType() != DT_DECIMAL64) {
193193
throw new RuntimeException("value type is not BasicDecimal64!");
194194
}
195195

0 commit comments

Comments
 (0)