Skip to content

Commit

Permalink
Change default TIME/TIMESTAMP semantics to ANSI SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedukow committed Mar 10, 2017
1 parent c0beab7 commit bf1e739
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static class ProcessingOptimization
private boolean exchangeCompressionEnabled = false;
private boolean legacyArrayAgg;
private boolean legacyOrderBy;
private boolean legacyTimestamp = true;
private boolean legacyTimestamp;
private boolean legacyMapSubscript;
private boolean optimizeMixedDistinctAggregations;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TestingConnectorSession

public TestingConnectorSession(List<PropertyMetadata<?>> properties)
{
this("user", UTC_KEY, ENGLISH, System.currentTimeMillis(), properties, ImmutableMap.of(), true);
this("user", UTC_KEY, ENGLISH, System.currentTimeMillis(), properties, ImmutableMap.of(), false);
}

public TestingConnectorSession(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void testDefaults()
.setLegacyOrderBy(false)
.setIterativeOptimizerEnabled(false)
.setExchangeCompressionEnabled(false)
.setLegacyTimestamp(true)
.setLegacyTimestamp(false)
.setIterativeOptimizerTimeout(new Duration(3, MINUTES))
.setExchangeCompressionEnabled(false));
}
Expand Down Expand Up @@ -100,7 +100,7 @@ public void testExplicitPropertyMappings()
.put("experimental.spiller-spill-path", "/tmp/custom/spill/path")
.put("experimental.spiller-threads", "42")
.put("exchange.compression-enabled", "true")
.put("deprecated.legacy-timestamp", "false")
.put("deprecated.legacy-timestamp", "true")
.build();
Map<String, String> properties = new ImmutableMap.Builder<String, String>()
.put("experimental.resource-groups-enabled", "true")
Expand Down Expand Up @@ -130,7 +130,7 @@ public void testExplicitPropertyMappings()
.put("experimental.spiller-spill-path", "/tmp/custom/spill/path")
.put("experimental.spiller-threads", "42")
.put("exchange.compression-enabled", "true")
.put("deprecated.legacy-timestamp", "false")
.put("deprecated.legacy-timestamp", "true")
.build();

FeaturesConfig expected = new FeaturesConfig()
Expand Down Expand Up @@ -161,7 +161,7 @@ public void testExplicitPropertyMappings()
.setSpillerThreads(42)
.setLegacyOrderBy(true)
.setExchangeCompressionEnabled(true)
.setLegacyTimestamp(false);
.setLegacyTimestamp(true);

assertFullMapping(properties, expected);
assertDeprecatedEquivalence(FeaturesConfig.class, properties, propertiesLegacy);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public long getStartTime()
@Override
public boolean isLegacyTimestamp()
{
return true;
return false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public long getStartTime()
@Override
public boolean isLegacyTimestamp()
{
return true;
return false;
}

@Override
Expand Down

0 comments on commit bf1e739

Please sign in to comment.