Skip to content

Commit

Permalink
unifying vertica connector as jdbc connector (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trianz-Akshay authored May 10, 2024
1 parent 96c3c7e commit c1a73d6
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 408 deletions.
4 changes: 2 additions & 2 deletions athena-vertica/athena-vertica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Parameters:
VerticaConnectionString:
Description: 'The Vertica connection details to use by default if not catalog specific connection is defined and optionally using SecretsManager (e.g. ${secret_name}).'
Type: String
Default: "jdbc:vertica://<host_name>:<port>/<database>?user=${vertica-username}&password=${vertica-password}"
Default: "vertica://jdbc:vertica://<host_name>:<port>/<database>?user=${vertica-username}&password=${vertica-password}"
PermissionsBoundaryARN:
Description: "(Optional) An IAM policy ARN to use as the PermissionsBoundary for the created Lambda function's execution role"
Default: ''
Expand All @@ -79,7 +79,7 @@ Resources:
spill_bucket: !Ref SpillBucket
spill_prefix: !Ref SpillPrefix
export_bucket: !Ref VerticaExportBucket
default_vertica: !Ref VerticaConnectionString
default: !Ref VerticaConnectionString

FunctionName: !Sub "${AthenaCatalogName}"
Handler: "com.amazonaws.athena.connectors.vertica.VerticaCompositeHandler"
Expand Down
1 change: 0 additions & 1 deletion athena-vertica/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
<groupId>com.amazonaws</groupId>
<artifactId>athena-jdbc</artifactId>
<version>2022.47.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*-
* #%L
* athena-vertica
* %%
* Copyright (C) 2019 - 2024 Amazon Web Services
* %%
* 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.
* #L%
*/
package com.amazonaws.athena.connectors.vertica;

public final class VerticaConstants
{
public static final String VERTICA_NAME = "vertica";
public static final String VERTICA_DRIVER_CLASS = "com.vertica.jdbc.Driver";
public static final int VERTICA_DEFAULT_PORT = 5433;

private VerticaConstants() {}
}
Loading

0 comments on commit c1a73d6

Please sign in to comment.