Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ allprojects {
repositories {
mavenCentral()
maven {
url 'https://linkedin.jfrog.io/artifactory/avro-util/'
url 'https://linkedin.jfrog.io/artifactory/dependency-overrides'
}
maven {
url 'https://linkedin.bintray.com/maven/'
url 'https://linkedin.jfrog.io/artifactory/open-source/'
}
}

Expand Down Expand Up @@ -78,4 +78,8 @@ subprojects {

apply from: "${rootDir}/gradle/dependencies.gradle"
apply from: "${rootDir}/gradle/java-publication.gradle"

tasks.named('javadoc') {
enabled = false
}
}
11 changes: 2 additions & 9 deletions coral-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
dependencies {
compile(deps.'linkedin-calcite-core') {
artifact {
name = 'calcite-core'
extension = 'jar'
type = 'jar'
classifier = 'shaded'
}
}
api(deps.'linkedin-calcite-core')

compile(deps.'hive'.'hive-metastore') {
implementation(deps.'hive'.'hive-metastore') {
exclude group: 'com.linkedin.metastore-autometrics', module: 'autometrics-reporter'
exclude group: 'com.linkedin.metastore-audit', module: 'metastore-audit-logging'
// avro-tools brings in whole bunch of hadoop classes causing duplicates and conflicts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* Copyright 2023 LinkedIn Corporation. All rights reserved.
* Copyright 2023-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.coral.common;

import java.util.List;

import org.apache.calcite.jdbc.JavaTypeFactoryImpl;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rel.type.RelDataTypeSystem;
import org.apache.calcite.rel.type.StructKind;
import com.linkedin.relocated.org.apache.calcite.jdbc.JavaTypeFactoryImpl;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataType;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeSystem;
import com.linkedin.relocated.org.apache.calcite.rel.type.StructKind;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2019-2024 LinkedIn Corporation. All rights reserved.
* Copyright 2019-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand All @@ -14,14 +14,13 @@

import com.google.common.collect.ImmutableList;
import com.google.common.collect.Sets;

import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rel.type.RelDataTypeFactory;
import org.apache.calcite.rel.type.RelDataTypeField;
import org.apache.calcite.sql.*;
import org.apache.calcite.sql.parser.SqlParserPos;
import org.apache.calcite.sql.type.SqlTypeName;
import org.apache.calcite.sql.util.SqlShuttle;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataType;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeFactory;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeField;
import com.linkedin.relocated.org.apache.calcite.sql.*;
import com.linkedin.relocated.org.apache.calcite.sql.parser.SqlParserPos;
import com.linkedin.relocated.org.apache.calcite.sql.type.SqlTypeName;
import com.linkedin.relocated.org.apache.calcite.sql.util.SqlShuttle;

import com.linkedin.coral.common.functions.GenericProjectFunction;
import com.linkedin.coral.common.utils.RelDataTypeToHiveTypeStringConverter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2017-2022 LinkedIn Corporation. All rights reserved.
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand All @@ -12,10 +12,9 @@

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;

import org.apache.calcite.linq4j.tree.Expression;
import org.apache.calcite.rel.type.RelProtoDataType;
import org.apache.calcite.schema.*;
import com.linkedin.relocated.org.apache.calcite.linq4j.tree.Expression;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelProtoDataType;
import com.linkedin.relocated.org.apache.calcite.schema.*;

import static com.google.common.base.Preconditions.checkNotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2023 LinkedIn Corporation. All rights reserved.
* Copyright 2023-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand All @@ -9,35 +9,34 @@
import java.util.List;

import com.google.common.base.Preconditions;
import com.linkedin.relocated.org.apache.calcite.plan.Context;
import com.linkedin.relocated.org.apache.calcite.plan.Contexts;
import com.linkedin.relocated.org.apache.calcite.plan.RelOptCluster;
import com.linkedin.relocated.org.apache.calcite.plan.RelOptSchema;
import com.linkedin.relocated.org.apache.calcite.rel.core.Values;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeFactory;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeField;
import com.linkedin.relocated.org.apache.calcite.rex.RexBuilder;
import com.linkedin.relocated.org.apache.calcite.tools.FrameworkConfig;
import com.linkedin.relocated.org.apache.calcite.tools.Frameworks;
import com.linkedin.relocated.org.apache.calcite.tools.RelBuilder;
import com.linkedin.relocated.org.apache.calcite.tools.RelBuilderFactory;
import com.linkedin.relocated.org.apache.calcite.util.Pair;

import org.apache.calcite.plan.Context;
import org.apache.calcite.plan.Contexts;
import org.apache.calcite.plan.RelOptCluster;
import org.apache.calcite.plan.RelOptSchema;
import org.apache.calcite.rel.core.Values;
import org.apache.calcite.rel.type.RelDataTypeFactory;
import org.apache.calcite.rel.type.RelDataTypeField;
import org.apache.calcite.rex.RexBuilder;
import org.apache.calcite.tools.FrameworkConfig;
import org.apache.calcite.tools.Frameworks;
import org.apache.calcite.tools.RelBuilder;
import org.apache.calcite.tools.RelBuilderFactory;
import org.apache.calcite.util.Pair;

import static org.apache.calcite.rel.core.RelFactories.DEFAULT_AGGREGATE_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_EXCHANGE_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_FILTER_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_JOIN_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_MATCH_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_PROJECT_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_REPEAT_UNION_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_SET_OP_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_SNAPSHOT_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_SORT_EXCHANGE_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_SORT_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_SPOOL_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_TABLE_SCAN_FACTORY;
import static org.apache.calcite.rel.core.RelFactories.DEFAULT_VALUES_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_AGGREGATE_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_EXCHANGE_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_FILTER_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_JOIN_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_MATCH_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_PROJECT_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_REPEAT_UNION_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_SET_OP_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_SNAPSHOT_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_SORT_EXCHANGE_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_SORT_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_SPOOL_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_TABLE_SCAN_FACTORY;
import static com.linkedin.relocated.org.apache.calcite.rel.core.RelFactories.DEFAULT_VALUES_FACTORY;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2017-2022 LinkedIn Corporation. All rights reserved.
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand All @@ -13,10 +13,10 @@

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.linkedin.relocated.org.apache.calcite.linq4j.tree.Expression;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelProtoDataType;
import com.linkedin.relocated.org.apache.calcite.schema.*;

import org.apache.calcite.linq4j.tree.Expression;
import org.apache.calcite.rel.type.RelProtoDataType;
import org.apache.calcite.schema.*;
import org.apache.hadoop.hive.metastore.api.Database;

import static com.google.common.base.Preconditions.checkNotNull;
Expand Down
24 changes: 12 additions & 12 deletions coral-common/src/main/java/com/linkedin/coral/common/HiveTable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2017-2023 LinkedIn Corporation. All rights reserved.
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand All @@ -16,18 +16,18 @@
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.linkedin.relocated.org.apache.calcite.DataContext;
import com.linkedin.relocated.org.apache.calcite.config.CalciteConnectionConfig;
import com.linkedin.relocated.org.apache.calcite.linq4j.Enumerable;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataType;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeFactory;
import com.linkedin.relocated.org.apache.calcite.schema.ScannableTable;
import com.linkedin.relocated.org.apache.calcite.schema.Schema;
import com.linkedin.relocated.org.apache.calcite.schema.Statistic;
import com.linkedin.relocated.org.apache.calcite.schema.Statistics;
import com.linkedin.relocated.org.apache.calcite.sql.SqlCall;
import com.linkedin.relocated.org.apache.calcite.sql.SqlNode;

import org.apache.calcite.DataContext;
import org.apache.calcite.config.CalciteConnectionConfig;
import org.apache.calcite.linq4j.Enumerable;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rel.type.RelDataTypeFactory;
import org.apache.calcite.schema.ScannableTable;
import org.apache.calcite.schema.Schema;
import org.apache.calcite.schema.Statistic;
import org.apache.calcite.schema.Statistics;
import org.apache.calcite.sql.SqlCall;
import org.apache.calcite.sql.SqlNode;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hive.metastore.MetaStoreUtils;
import org.apache.hadoop.hive.metastore.TableType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Copyright 2017-2024 LinkedIn Corporation. All rights reserved.
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.coral.common;

import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rel.type.RelDataTypeFactory;
import org.apache.calcite.rel.type.RelDataTypeSystemImpl;
import org.apache.calcite.sql.type.SqlTypeName;
import org.apache.calcite.sql.type.SqlTypeUtil;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataType;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeFactory;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeSystemImpl;
import com.linkedin.relocated.org.apache.calcite.sql.type.SqlTypeName;
import com.linkedin.relocated.org.apache.calcite.sql.type.SqlTypeUtil;


// Precision and scale values copied from Hive source code
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
/**
* Copyright 2018-2023 LinkedIn Corporation. All rights reserved.
* Copyright 2018-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.coral.common;

import java.util.List;

import org.apache.calcite.plan.Convention;
import org.apache.calcite.plan.RelOptCluster;
import org.apache.calcite.plan.RelTraitSet;
import org.apache.calcite.rel.RelInput;
import org.apache.calcite.rel.RelNode;
import org.apache.calcite.rel.core.Uncollect;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rel.type.RelDataTypeFactory;
import org.apache.calcite.rel.type.RelDataTypeField;
import org.apache.calcite.sql.SqlUnnestOperator;
import org.apache.calcite.sql.type.MapSqlType;
import org.apache.calcite.sql.type.SqlTypeName;
import com.linkedin.relocated.org.apache.calcite.plan.Convention;
import com.linkedin.relocated.org.apache.calcite.plan.RelOptCluster;
import com.linkedin.relocated.org.apache.calcite.plan.RelTraitSet;
import com.linkedin.relocated.org.apache.calcite.rel.RelInput;
import com.linkedin.relocated.org.apache.calcite.rel.RelNode;
import com.linkedin.relocated.org.apache.calcite.rel.core.Uncollect;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataType;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeFactory;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelDataTypeField;
import com.linkedin.relocated.org.apache.calcite.sql.SqlUnnestOperator;
import com.linkedin.relocated.org.apache.calcite.sql.type.MapSqlType;
import com.linkedin.relocated.org.apache.calcite.sql.type.SqlTypeName;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/**
* Copyright 2017-2023 LinkedIn Corporation. All rights reserved.
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.coral.common;

import java.util.List;

import org.apache.calcite.plan.RelOptTable;
import org.apache.calcite.rel.RelNode;
import org.apache.calcite.rel.RelRoot;
import org.apache.calcite.schema.TranslatableTable;
import org.apache.hadoop.hive.metastore.api.Table;
import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableList;
import com.linkedin.relocated.org.apache.calcite.plan.RelOptTable;
import com.linkedin.relocated.org.apache.calcite.rel.RelNode;
import com.linkedin.relocated.org.apache.calcite.rel.RelRoot;
import com.linkedin.relocated.org.apache.calcite.schema.TranslatableTable;

import com.linkedin.coral.com.google.common.base.Throwables;
import com.linkedin.coral.com.google.common.collect.ImmutableList;
import org.apache.hadoop.hive.metastore.api.Table;

import static org.apache.calcite.sql.type.SqlTypeName.*;
import static com.linkedin.relocated.org.apache.calcite.sql.type.SqlTypeName.*;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2017-2022 LinkedIn Corporation. All rights reserved.
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand All @@ -12,10 +12,9 @@

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;

import org.apache.calcite.linq4j.tree.Expression;
import org.apache.calcite.rel.type.RelProtoDataType;
import org.apache.calcite.schema.*;
import com.linkedin.relocated.org.apache.calcite.linq4j.tree.Expression;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelProtoDataType;
import com.linkedin.relocated.org.apache.calcite.schema.*;

import static com.google.common.base.Preconditions.checkNotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2017-2022 LinkedIn Corporation. All rights reserved.
* Copyright 2017-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand All @@ -12,10 +12,9 @@

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;

import org.apache.calcite.linq4j.tree.Expression;
import org.apache.calcite.rel.type.RelProtoDataType;
import org.apache.calcite.schema.*;
import com.linkedin.relocated.org.apache.calcite.linq4j.tree.Expression;
import com.linkedin.relocated.org.apache.calcite.rel.type.RelProtoDataType;
import com.linkedin.relocated.org.apache.calcite.schema.*;

import static com.google.common.base.Preconditions.checkNotNull;

Expand Down
Loading