Skip to content

Make PinotTableRestletResourceTest java8 compatible#11287

Merged
mcvsubbu merged 1 commit intoapache:masterfrom
dinoocch:java8-test-fix
Aug 7, 2023
Merged

Make PinotTableRestletResourceTest java8 compatible#11287
mcvsubbu merged 1 commit intoapache:masterfrom
dinoocch:java8-test-fix

Conversation

@dinoocch
Copy link
Contributor

@dinoocch dinoocch commented Aug 7, 2023

This commit fixes java8 build compatibility that is broken in #11017

Specifically, Map.of is only available in java 9+.

In this case, this code:

TableConfigBuilder(TableType.REALTIME)
      .setStreamConfigs(Map.of("stream.type", "foo", "consumer.type", "lowlevel"));

Is actually not used since we are later calling the following in setup:

StreamConfig streamConfig = FakeStreamConfigUtils.getDefaultLowLevelStreamConfigs();
_realtimeBuilder...setStreamConfigs(streamConfig.getStreamConfigsMap());

This commit fixes java8 build compatibility that is broken in apache#11017

Specifically, `Map.of` is only available in java 9+.

In this case, this code:

```java
TableConfigBuilder(TableType.REALTIME)
      .setStreamConfigs(Map.of("stream.type", "foo", "consumer.type", "lowlevel"));
```

Is actually not used since we are later calling the following in setup:

```java
StreamConfig streamConfig = FakeStreamConfigUtils.getDefaultLowLevelStreamConfigs();
_realtimeBuilder...setStreamConfigs(streamConfig.getStreamConfigsMap());
```
@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.11%. Comparing base (8bc4feb) to head (737a35b).
Report is 2258 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11287      +/-   ##
==========================================
- Coverage    0.11%    0.11%   -0.01%     
==========================================
  Files        2229     2230       +1     
  Lines      119969   120138     +169     
  Branches    18186    18218      +32     
==========================================
  Hits          137      137              
- Misses     119812   119981     +169     
  Partials       20       20              
Flag Coverage Δ
integration1temurin11 0.00% <ø> (ø)
integration1temurin17 0.00% <ø> (ø)
integration1temurin20 0.00% <ø> (ø)
integration2temurin11 0.00% <ø> (ø)
integration2temurin17 0.00% <ø> (ø)
integration2temurin20 0.00% <ø> (?)
unittests1temurin11 0.00% <ø> (ø)
unittests1temurin17 0.00% <ø> (ø)
unittests1temurin20 0.00% <ø> (ø)
unittests2temurin11 0.11% <ø> (-0.01%) ⬇️
unittests2temurin17 0.11% <ø> (-0.01%) ⬇️
unittests2temurin20 0.11% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mcvsubbu mcvsubbu merged commit bc4a225 into apache:master Aug 7, 2023
s0nskar pushed a commit to s0nskar/pinot that referenced this pull request Aug 10, 2023
This commit fixes java8 build compatibility that is broken in apache#11017

Specifically, `Map.of` is only available in java 9+.

In this case, this code:

```java
TableConfigBuilder(TableType.REALTIME)
      .setStreamConfigs(Map.of("stream.type", "foo", "consumer.type", "lowlevel"));
```

Is actually not used since we are later calling the following in setup:

```java
StreamConfig streamConfig = FakeStreamConfigUtils.getDefaultLowLevelStreamConfigs();
_realtimeBuilder...setStreamConfigs(streamConfig.getStreamConfigsMap());
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants