New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Hive auto.purge property #955
Comments
Working on this |
The behavior of skipping the I started making changes for (2) but I made them in a manner such that the decision to skip the @Override
public void dropTable(String databaseName, String name, boolean deleteData, Optional<ConnectorSession> session)
throws TException
{
if (session.isPresent() && session.get().getProperty(HiveSessionProperties.PURGE_TABLE_DATA_ON_DROP, Boolean.class)) {
EnvironmentContext envContext = new EnvironmentContext(ImmutableMap.of("ifPurge", "true"));
client.drop_table_with_environment_context(databaseName, name, deleteData, envContext);
}
else {
client.drop_table(databaseName, name, deleteData);
}
} If there is interest I can look into creating a PR for this. |
Hive has a boolean table property
auto.purge
which we should expose as a Presto table property in the Hive connector.See https://issues.apache.org/jira/browse/HIVE-9118
The text was updated successfully, but these errors were encountered: