Copilot commented on code in PR #62781: URL: https://github.com/apache/doris/pull/62781#discussion_r3135774453
########## fe/fe-core/src/test/java/org/apache/doris/datasource/jdbc/client/JdbcMySQLClientTest.java: ########## @@ -0,0 +1,76 @@ +// 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.datasource.jdbc.client; + +import org.apache.doris.catalog.PrimitiveType; +import org.apache.doris.catalog.Type; +import org.apache.doris.datasource.jdbc.util.JdbcFieldSchema; + +import org.junit.Assert; +import org.junit.Test; +import org.mockito.Mockito; +import org.objenesis.ObjenesisStd; + +import java.lang.reflect.Field; +import java.util.Optional; Review Comment: The import block has a blank line splitting third-party imports (org.apache.doris.* vs org.junit/org.mockito/org.objenesis). FE checkstyle's CustomImportOrder groups all non-java imports together, so this separation is likely to fail checkstyle. Please remove the extra blank line and keep all third-party imports in a single group (then a blank line before java.*). ########## thirdparty/vars.sh: ########## @@ -48,6 +48,7 @@ export TP_JAR_DIR="${TP_INSTALL_DIR}/lib/jar" # source of all dependencies, default unuse it # export REPOSITORY_URL= +DORIS_THIRDPARTY_REPOSITORY_URL="${DORIS_THIRDPARTY_REPOSITORY_URL:-https://doris-regression-hk.oss-cn-hongkong.aliyuncs.com/regression/datalake/thirdparty/juicefs}" Review Comment: This PR is described as fixing FE JDBC external column defaults, but this hunk introduces a new JuiceFS third-party mirror URL configuration (and related download fallback support elsewhere in the PR). Please either update the PR title/description to cover these additional changes or split the JuiceFS/thirdparty download changes into a separate PR so the review and release notes stay accurate. ########## thirdparty/vars.sh: ########## @@ -48,6 +48,7 @@ export TP_JAR_DIR="${TP_INSTALL_DIR}/lib/jar" # source of all dependencies, default unuse it # export REPOSITORY_URL= +DORIS_THIRDPARTY_REPOSITORY_URL="${DORIS_THIRDPARTY_REPOSITORY_URL:-https://doris-regression-hk.oss-cn-hongkong.aliyuncs.com/regression/datalake/thirdparty/juicefs}" Review Comment: `DORIS_THIRDPARTY_REPOSITORY_URL` is named like a global thirdparty mirror, but its default value is JuiceFS-specific and it's only used to build `JUICEFS_DOWNLOAD`. This is easy to misconfigure/confuse (especially since docker scripts use `JUICEFS_THIRDPARTY_REPOSITORY_URL`). Consider renaming this variable to something JuiceFS-specific (or reusing `REPOSITORY_URL`) to make the scope clear and keep env var naming consistent across scripts. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
