File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments