-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Hive connector "hive-hadoop2 to "hive"
- Loading branch information
Showing
34 changed files
with
133 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
plugin/trino-hive-hadoop2/src/main/java/io/trino/plugin/hive/HiveHadoop2Plugin.java
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
plugin/trino-hive-hadoop2/src/main/java/io/trino/plugin/hive/HivePlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.trino.plugin.hive; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
import io.airlift.log.Logger; | ||
import io.trino.spi.Plugin; | ||
import io.trino.spi.connector.Connector; | ||
import io.trino.spi.connector.ConnectorContext; | ||
import io.trino.spi.connector.ConnectorFactory; | ||
|
||
import java.util.Map; | ||
|
||
public class HivePlugin | ||
implements Plugin | ||
{ | ||
private static final Logger log = Logger.get(HivePlugin.class); | ||
|
||
@Override | ||
public Iterable<ConnectorFactory> getConnectorFactories() | ||
{ | ||
return ImmutableList.of(new HiveConnectorFactory("hive"), new LegacyHiveConnectorFactory()); | ||
} | ||
|
||
private static class LegacyHiveConnectorFactory | ||
extends HiveConnectorFactory | ||
{ | ||
public LegacyHiveConnectorFactory() | ||
{ | ||
super("hive-hadoop2"); | ||
} | ||
|
||
@Override | ||
public Connector create(String catalogName, Map<String, String> config, ConnectorContext context) | ||
{ | ||
log.warn("Connector name 'hive-hadoop2' is deprecated. Use 'hive' instead."); | ||
return super.create(catalogName, config, context); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sts-launcher/src/main/resources/docker/presto-product-tests/common/hadoop/hive.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../main/resources/docker/presto-product-tests/common/hadoop/hive_timestamp_nanos.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.