Skip to content

Commit

Permalink
[feat][hive3] The version of guava conflict lead compile fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
chestnutqiang authored and FlechazoW committed Aug 8, 2022
1 parent 1e4a0e3 commit 7295f29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import com.dtstack.chunjun.connector.doris.rest.module.Schema;
import com.dtstack.chunjun.connector.doris.rest.module.Tablet;

import org.apache.flink.shaded.guava18.com.google.common.annotations.VisibleForTesting;

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -242,7 +240,6 @@ private static String parseResponse(HttpURLConnection connection) throws IOExcep
* @return first element is db name, second element is table name
* @throws IllegalArgumentException table identifier is illegal
*/
@VisibleForTesting
static String[] parseIdentifier(String tableIdentifier) throws IllegalArgumentException {
LOG.trace("Parse identifier '{}'.", tableIdentifier);
if (StringUtils.isEmpty(tableIdentifier)) {
Expand All @@ -264,7 +261,6 @@ static String[] parseIdentifier(String tableIdentifier) throws IllegalArgumentEx
* @return the chosen one Doris FE node
* @throws IllegalArgumentException fe nodes is illegal
*/
@VisibleForTesting
static String randomEndpoint(List<String> feNodes) throws IllegalArgumentException {
LOG.trace("Parse feNodes '{}'.", feNodes);
if (feNodes.isEmpty()) {
Expand All @@ -282,7 +278,6 @@ static String randomEndpoint(List<String> feNodes) throws IllegalArgumentExcepti
* @return the chosen one Doris BE node
* @throws IllegalArgumentException BE nodes is illegal
*/
@VisibleForTesting
public static String randomBackend(DorisConf options) throws IOException {
List<BackendRow> backends = getBackends(options);
LOG.trace("Parse beNodes '{}'.", backends);
Expand All @@ -302,7 +297,6 @@ public static String randomBackend(DorisConf options) throws IOException {
* @return the chosen one Doris BE node
* @throws IllegalArgumentException BE nodes is illegal
*/
@VisibleForTesting
static List<BackendRow> getBackends(DorisConf options) throws IOException {
List<String> feNodes = options.getFeNodes();
String feNode = randomEndpoint(feNodes);
Expand Down Expand Up @@ -351,7 +345,6 @@ static List<BackendRow> parseBackend(String response) throws IOException {
* @return uri string
* @throws IllegalArgumentException throw when configuration is illegal
*/
@VisibleForTesting
static String getUriStr(DorisConf options) throws IllegalArgumentException {
return "http://"
+ randomEndpoint(options.getFeNodes())
Expand Down Expand Up @@ -385,7 +378,6 @@ public static Schema getSchema(DorisConf options) throws RuntimeException {
* @return inner {@link Schema} struct
* @throws RuntimeException throw when translate failed
*/
@VisibleForTesting
public static Schema parseSchema(String response) throws RuntimeException {
LOG.trace("Parse response '{}' to schema.", response);
ObjectMapper mapper = new ObjectMapper();
Expand Down Expand Up @@ -472,7 +464,6 @@ public static List<PartitionDefinition> findPartitions(DorisConf options)
* @return inner {@link QueryPlan} struct
* @throws RuntimeException throw when translate failed.
*/
@VisibleForTesting
static QueryPlan getQueryPlan(String response) throws RuntimeException {
ObjectMapper mapper = new ObjectMapper();
QueryPlan queryPlan;
Expand Down Expand Up @@ -513,7 +504,6 @@ static QueryPlan getQueryPlan(String response) throws RuntimeException {
* @return BE to tablets {@link Map}
* @throws RuntimeException throw when select failed.
*/
@VisibleForTesting
static Map<String, List<Long>> selectBeForTablet(QueryPlan queryPlan) throws RuntimeException {
Map<String, List<Long>> be2Tablets = new HashMap<>();
for (Map.Entry<String, Tablet> part : queryPlan.getPartitions().entrySet()) {
Expand Down Expand Up @@ -566,7 +556,6 @@ static Map<String, List<Long>> selectBeForTablet(QueryPlan queryPlan) throws Run
* @param loadConf configuration of request
* @return tablet count limit
*/
@VisibleForTesting
static int tabletCountLimitForOnePartition(LoadConf loadConf) {
int tabletsSize = DORIS_TABLET_SIZE_DEFAULT;
if (loadConf.getRequestTabletSize() != null) {
Expand Down Expand Up @@ -595,7 +584,6 @@ static int tabletCountLimitForOnePartition(LoadConf loadConf) {
* @return Doris RDD partition {@link List}
* @throws IllegalArgumentException throw when translate failed
*/
@VisibleForTesting
static List<PartitionDefinition> tabletsMapToPartition(
DorisConf options,
Map<String, List<Long>> be2Tablets,
Expand Down
10 changes: 5 additions & 5 deletions chunjun-local-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@
<artifactId>chunjun-connector-saphana</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.dtstack.chunjun</groupId>
<artifactId>chunjun-connector-inceptor</artifactId>
<version>${project.version}</version>
</dependency>
<!--<dependency>-->
<!-- <groupId>com.dtstack.chunjun</groupId>-->
<!-- <artifactId>chunjun-connector-inceptor</artifactId>-->
<!-- <version>${project.version}</version>-->
<!--</dependency>-->
<dependency>
<groupId>com.dtstack.chunjun</groupId>
<artifactId>chunjun-connector-oceanbase</artifactId>
Expand Down

0 comments on commit 7295f29

Please sign in to comment.