Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Nov 4, 2022
1 parent ec7dcf2 commit e2eb491
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
22 changes: 8 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<parent>
<groupId>io.airlift</groupId>
<artifactId>airbase</artifactId>
<version>129</version>
<version>130</version>
</parent>

<licenses>
Expand All @@ -53,12 +53,13 @@
<air.check.fail-checkstyle>true</air.check.fail-checkstyle>
<air.check.skip-checkstyle>false</air.check.skip-checkstyle>

<dep.trino.version>396</dep.trino.version>
<dep.airlift.version>218</dep.airlift.version>
<dep.trino.version>402</dep.trino.version>
<dep.airlift.version>219</dep.airlift.version>
<dep.packaging.version>${dep.airlift.version}</dep.packaging.version>
<dep.errorprone.version>2.15.0</dep.errorprone.version>
<dep.errorprone.version>2.16</dep.errorprone.version>
<dep.jackson.version>2.13.4</dep.jackson.version>
<dep.testng.version>7.6.1</dep.testng.version>
<dep.joda.version>2.12.1</dep.joda.version>

<air.javadoc.lint>-missing</air.javadoc.lint>
<project.scm.id>github</project.scm.id>
Expand Down Expand Up @@ -108,7 +109,7 @@
<dependency>
<groupId>io.airlift</groupId>
<artifactId>slice</artifactId>
<version>0.42</version>
<version>0.44</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -137,13 +138,6 @@
<version>1</version>
</dependency>

<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.11.1</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand Down Expand Up @@ -222,14 +216,14 @@
<dependency>
<groupId>io.airlift</groupId>
<artifactId>units</artifactId>
<version>1.6</version>
<version>1.8</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.4.2</version>
<version>3.5.0</version>
<scope>test</scope>
</dependency>

Expand Down
38 changes: 19 additions & 19 deletions src/main/java/pl/net/was/trino/git/GitClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,27 @@ public static enum View {
Map<String, List<ConnectorViewDefinition.ViewColumn>> viewColumns = Map.of(
View.idents.name(),
List.of(
new ConnectorViewDefinition.ViewColumn("email", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("name", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("extra_emails", new ArrayType(VarcharType.VARCHAR).getTypeId()),
new ConnectorViewDefinition.ViewColumn("extra_names", new ArrayType(VarcharType.VARCHAR).getTypeId())),
new ConnectorViewDefinition.ViewColumn("email", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("name", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("extra_emails", new ArrayType(VarcharType.VARCHAR).getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("extra_names", new ArrayType(VarcharType.VARCHAR).getTypeId(), Optional.empty())),
View.commit_stats.name(),
List.of(
new ConnectorViewDefinition.ViewColumn("object_id", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("author_name", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("author_email", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("committer_name", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("committer_email", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("message", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("parents", new ArrayType(VarcharType.VARCHAR).getTypeId()),
new ConnectorViewDefinition.ViewColumn("tree_id", VarcharType.VARCHAR.getTypeId()),
new ConnectorViewDefinition.ViewColumn("commit_time", TimestampWithTimeZoneType.TIMESTAMP_TZ_SECONDS.getTypeId()),

new ConnectorViewDefinition.ViewColumn("added_lines", BigintType.BIGINT.getTypeId()),
new ConnectorViewDefinition.ViewColumn("deleted_lines", BigintType.BIGINT.getTypeId()),
new ConnectorViewDefinition.ViewColumn("changed_files", BigintType.BIGINT.getTypeId()),
new ConnectorViewDefinition.ViewColumn("similarity_score", DoubleType.DOUBLE.getTypeId()),
new ConnectorViewDefinition.ViewColumn("change_types", new ArrayType(VarcharType.VARCHAR).getTypeId())));
new ConnectorViewDefinition.ViewColumn("object_id", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("author_name", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("author_email", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("committer_name", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("committer_email", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("message", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("parents", new ArrayType(VarcharType.VARCHAR).getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("tree_id", VarcharType.VARCHAR.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("commit_time", TimestampWithTimeZoneType.TIMESTAMP_TZ_SECONDS.getTypeId(), Optional.empty()),

new ConnectorViewDefinition.ViewColumn("added_lines", BigintType.BIGINT.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("deleted_lines", BigintType.BIGINT.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("changed_files", BigintType.BIGINT.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("similarity_score", DoubleType.DOUBLE.getTypeId(), Optional.empty()),
new ConnectorViewDefinition.ViewColumn("change_types", new ArrayType(VarcharType.VARCHAR).getTypeId(), Optional.empty())));

@Inject
public GitClient(GitConfig config)
Expand Down

0 comments on commit e2eb491

Please sign in to comment.