• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ExpediaGroup / drone-fly / #137

17 Mar 2026 07:59PM UTC coverage: 34.545% (-21.6%) from 56.14%
#137

push

web-flow
Merge a641ac158 into f8782bb73

12 of 164 new or added lines in 14 files covered. (7.32%)

133 of 385 relevant lines covered (34.55%)

0.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/drone-fly-app/src/main/java/org/apache/hadoop/hive/metastore/api/Decimal.java
1
/**
2
 * Copyright (C) 2020-2026 Expedia, Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package org.apache.hadoop.hive.metastore.api;
17

18
import java.io.Serializable;
19

20
/**
21
 * Compatibility shim for {@code Decimal}. The Hive 4.x Thrift-generated class has both {@code
22
 * setUnscaled(byte[])} and {@code setUnscaled(ByteBuffer)}, which causes Jackson {@code
23
 * InvalidDefinitionException}. This shim exposes only the {@code byte[]} setter.
24
 */
25
public class Decimal implements Serializable {
26

27
  private short scale;
28
  private byte[] unscaled;
29

NEW
30
  public Decimal() {}
×
31

32
  public short getScale() {
NEW
33
    return scale;
×
34
  }
35

36
  public void setScale(short scale) {
NEW
37
    this.scale = scale;
×
NEW
38
  }
×
39

40
  public byte[] getUnscaled() {
NEW
41
    return unscaled;
×
42
  }
43

44
  public void setUnscaled(byte[] unscaled) {
NEW
45
    this.unscaled = unscaled;
×
NEW
46
  }
×
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc