Skip to content

Commit

Permalink
Set use-new-nan-definition to true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlussel committed Jun 6, 2024
1 parent e64a504 commit 38b99f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public class FeaturesConfig
private CreateView.Security defaultViewSecurityMode = DEFINER;
private boolean useHistograms;

private boolean useNewNanDefinition;
private boolean useNewNanDefinition = true;

public enum PartitioningPrecisionStrategy
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ public void testDefaults()
.setCteHeuristicReplicationThreshold(4)
.setLegacyJsonCast(true)
.setPrintEstimatedStatsFromCache(false)
.setUseHistograms(false));
.setUseNewNanDefinition(false));
.setUseHistograms(false)
.setUseNewNanDefinition(true));
}

@Test
Expand Down Expand Up @@ -488,7 +488,7 @@ public void testExplicitPropertyMappings()
.put("cte-heuristic-replication-threshold", "2")
.put("optimizer.print-estimated-stats-from-cache", "true")
.put("optimizer.use-histograms", "true")
.put("use-new-nan-definition", "true")
.put("use-new-nan-definition", "false")
.build();

FeaturesConfig expected = new FeaturesConfig()
Expand Down Expand Up @@ -702,7 +702,7 @@ public void testExplicitPropertyMappings()
.setLegacyJsonCast(false)
.setPrintEstimatedStatsFromCache(true)
.setUseHistograms(true)
.setUseNewNanDefinition(true);
.setUseNewNanDefinition(false);
assertFullMapping(properties, expected);
}

Expand Down

0 comments on commit 38b99f9

Please sign in to comment.