Skip to content

Commit 7116972

Browse files
committed
minor version bump & mark old interfaces deprecated
1 parent 52bef80 commit 7116972

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

coral-common/src/main/java/com/linkedin/coral/common/HiveDbSchema.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ public class HiveDbSchema implements Schema {
3939
private final String dbName;
4040

4141
/**
42-
* Constructor using CoralCatalog for unified table access.
42+
* Constructor for HiveDbSchema. Exactly one of coralCatalog or msc must be non-null.
43+
*
44+
* @param coralCatalog Coral catalog for unified access (can be null if msc is provided)
45+
* @param msc Hive metastore client for Hive-specific access (can be null if coralCatalog is provided)
46+
* @param dbName Database name (must not be null)
4347
*/
4448
HiveDbSchema(CoralCatalog coralCatalog, HiveMetastoreClient msc, @Nonnull String dbName) {
4549
this.coralCatalog = coralCatalog;

coral-common/src/main/java/com/linkedin/coral/common/HiveMetastoreClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
* Interface for accessing Hive Metastore.
1616
* Implementations of this interface handle connections to Hive metastore
1717
* and provide access to database and table metadata.
18+
*
19+
* @deprecated Use {@link com.linkedin.coral.common.catalog.CoralCatalog} instead.
20+
* CoralCatalog provides a unified interface supporting multiple table formats
21+
* (Hive, Iceberg, etc.) while this interface is Hive-specific.
22+
* Existing code using HiveMetastoreClient continues to work.
1823
*/
24+
@Deprecated
1925
public interface HiveMetastoreClient {
2026

2127
/**

coral-common/src/main/java/com/linkedin/coral/common/HiveMscAdapter.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2017-2023 LinkedIn Corporation. All rights reserved.
2+
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
33
* Licensed under the BSD-2 Clause license.
44
* See LICENSE in the project root for license information.
55
*/
@@ -17,6 +17,15 @@
1717
import org.slf4j.LoggerFactory;
1818

1919

20+
/**
21+
* Adapter implementation of {@link HiveMetastoreClient} that wraps
22+
* Hadoop's {@link IMetaStoreClient}.
23+
*
24+
* @deprecated Use {@link com.linkedin.coral.common.catalog.CoralCatalog} instead.
25+
* This class is Hive-specific. For multi-format support (Hive, Iceberg),
26+
* implement CoralCatalog directly. Existing code continues to work.
27+
*/
28+
@Deprecated
2029
public class HiveMscAdapter implements HiveMetastoreClient {
2130

2231
private final static Logger LOG = LoggerFactory.getLogger(HiveMscAdapter.class);

coral-common/src/main/java/com/linkedin/coral/common/ToRelConverter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
* This class should serve as the main entry point for clients to convert
5353
* SQL queries.
5454
*
55-
* Uses CoralCatalog for unified access to different table formats.
55+
* Supports both {@link com.linkedin.coral.common.catalog.CoralCatalog} (for unified
56+
* multi-format access to Hive/Iceberg tables) and {@link HiveMetastoreClient}
57+
* (for backward compatibility with Hive-only workflows).
5658
*/
5759
public abstract class ToRelConverter {
5860

version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Version of the produced binaries.
22
# The version is inferred by shipkit-auto-version Gradle plugin (https://github.com/shipkit/shipkit-auto-version)
3-
version=2.2.*
3+
version=2.3.*

0 commit comments

Comments
 (0)