vinson0526 commented on a change in pull request #2228: add spark-doris-connector extension URL: https://github.com/apache/incubator-doris/pull/2228#discussion_r348971172
########## File path: extension/spark-doris-connector/src/main/java/org/apache/doris/spark/cfg/ConfigurationOptions.java ########## @@ -0,0 +1,55 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package org.apache.doris.spark.cfg; + +public interface ConfigurationOptions { + // doris fe node address + String DORIS_FENODES = "doris.fenodes"; + + String DORIS_DEFAULT_CLUSTER = "default_cluster"; + + String TABLE_IDENTIFIER = "table.identifier"; + String DORIS_TABLE_IDENTIFIER = "doris.table.identifier"; + String DORIS_READ_FIELD = "doris.read.field"; + String DORIS_FILTER_QUERY = "doris.filter.query"; + String DORIS_FILTER_QUERY_IN_VALUE_MAX = "doris.filter.query.in.value.max"; + int DORIS_FILTER_QUERY_IN_VALUE_UPPER_LIMIT = 10000; + + String DORIS_USER = "doris.user"; + String DORIS_REQUEST_AUTH_USER = "doris.request.auth.user"; + // use password to save doris.request.auth.password + // reuse credentials mask method in spark ExternalCatalogUtils#maskCredentials + String DORIS_PASSWORD = "doris.password"; + String DORIS_REQUEST_AUTH_PASSWORD = "doris.request.auth.password"; + + String DORIS_REQUEST_RETRIES = "doris.request.retries"; + String DORIS_REQUEST_CONNECT_TIMEOUT_MS = "doris.request.connect.timeout.ms"; + String DORIS_REQUEST_READ_TIMEOUT_MS = "doris.request.read.timeout.ms"; + int DORIS_REQUEST_RETRIES_DEFAULT = 3; + int DORIS_REQUEST_CONNECT_TIMEOUT_DEFAULT = 30 * 1000; + int DORIS_REQUEST_READ_TIMEOUT_DEFAULT = 30 * 1000; Review comment: done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org