Skip to content

Commit

Permalink
Bump Coral dependency version to 2.0.55
Browse files Browse the repository at this point in the history
Co-authored-by: Marius Grama <findinpath@gmail.com>
  • Loading branch information
2 people authored and findepi committed Mar 8, 2022
1 parent bafb4ac commit d8f7ac8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
5 changes: 5 additions & 0 deletions plugin/trino-hive/pom.xml
Expand Up @@ -195,6 +195,11 @@
<classifier>shaded</classifier>
</dependency>

<dependency>
<groupId>com.linkedin.coral</groupId>
<artifactId>coral-common</artifactId>
</dependency>

<dependency>
<groupId>com.linkedin.coral</groupId>
<artifactId>coral-hive</artifactId>
Expand Down
Expand Up @@ -13,7 +13,7 @@
*/
package io.trino.plugin.hive;

import com.linkedin.coral.hive.hive2rel.HiveMetastoreClient;
import com.linkedin.coral.common.HiveMetastoreClient;
import com.linkedin.coral.hive.hive2rel.HiveToRelConverter;
import com.linkedin.coral.trino.rel2trino.RelToTrinoConverter;
import io.airlift.json.JsonCodec;
Expand Down Expand Up @@ -184,7 +184,7 @@ public HiveViewReader(HiveMetastoreClient hiveMetastoreClient, TypeManager typeM
public ConnectorViewDefinition decodeViewData(String viewSql, Table table, CatalogName catalogName)
{
try {
HiveToRelConverter hiveToRelConverter = HiveToRelConverter.create(metastoreClient);
HiveToRelConverter hiveToRelConverter = new HiveToRelConverter(metastoreClient);
RelNode rel = hiveToRelConverter.convertView(table.getDatabaseName(), table.getTableName());
RelToTrinoConverter relToTrino = new RelToTrinoConverter();
String trinoSql = relToTrino.convert(rel);
Expand Down
Expand Up @@ -13,7 +13,7 @@
*/
package io.trino.plugin.hive.metastore;

import com.linkedin.coral.hive.hive2rel.HiveMetastoreClient;
import com.linkedin.coral.common.HiveMetastoreClient;
import io.trino.plugin.hive.CoralTableRedirectionResolver;
import io.trino.plugin.hive.metastore.thrift.ThriftMetastoreUtil;
import io.trino.spi.connector.SchemaTableName;
Expand Down
27 changes: 25 additions & 2 deletions pom.xml
Expand Up @@ -64,7 +64,7 @@
<dep.testcontainers.version>1.16.3</dep.testcontainers.version>
<dep.duct-tape.version>1.0.8</dep.duct-tape.version>
<dep.docker-java.version>3.2.12</dep.docker-java.version>
<dep.coral.version>1.0.121</dep.coral.version>
<dep.coral.version>2.0.55</dep.coral.version>
<dep.confluent.version>5.5.2</dep.confluent.version>

<dep.docker.images.version>53</dep.docker.images.version>
Expand Down Expand Up @@ -1117,7 +1117,7 @@

<dependency>
<groupId>com.linkedin.coral</groupId>
<artifactId>coral-hive</artifactId>
<artifactId>coral-common</artifactId>
<version>${dep.coral.version}</version>
<exclusions>
<exclusion>
Expand All @@ -1131,10 +1131,33 @@
</exclusions>
</dependency>

<dependency>
<groupId>com.linkedin.coral</groupId>
<artifactId>coral-hive</artifactId>
<version>${dep.coral.version}</version>
</dependency>

<dependency>
<groupId>com.linkedin.coral</groupId>
<artifactId>coral-trino</artifactId>
<version>${dep.coral.version}</version>
<exclusions>
<!--
The `trino-parser` library is being used internally within the `coral-trino` library for
parsing Trino SQL statements. This functionality is irrelevant in the context of
using Coral for Hive view translations within Trino.
This dependency is excluded because `trino-parser` does not guarantee API or behavioral
backwards compatibility.
Trino cannot provide the version on which `coral-trino` library depends on, because the
current version of `trino-parser` is used in tests of this module.
The dependency is therefore intentionally excluded to avoid breaking in an unexpected way,
or silent correctness issues.
-->
<exclusion>
<groupId>io.trino</groupId>
<artifactId>trino-parser</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down

1 comment on commit d8f7ac8

@mosabua
Copy link
Member

@mosabua mosabua commented on d8f7ac8 Mar 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a release notes entry or doc update to that. Seems like a major version upgrade for Coral .. that should improve Hive views ..

Please sign in to comment.