-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BugFix] fix resource name from stmt propery instead of catalog recast #34844
Conversation
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
fe/fe-core/src/main/java/com/starrocks/server/HiveTableFactory.java
Outdated
Show resolved
Hide resolved
@dirtysalt could you explain more in the commit message on this CL. There is no background at all so that I can't get what you are doing in this PR. |
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Kudos, SonarCloud Quality Gate passed!
|
Sorry, I forget to clarify this root cause in CL. I've added the root cause to description. |
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 30 / 34 (88.24%) file detail
|
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
@Mergifyio backport branch-3.0 |
@Mergifyio backport branch-2.5 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
#34844) Signed-off-by: yanz <dirtysalt1987@gmail.com> (cherry picked from commit d7be916) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/server/HiveTableFactory.java # fe/fe-core/src/test/java/com/starrocks/catalog/HiveTableTest.java # fe/fe-core/src/test/java/com/starrocks/catalog/HudiTableTest.java # fe/fe-core/src/test/java/com/starrocks/catalog/IcebergTableTest.java
#34844) Signed-off-by: yanz <dirtysalt1987@gmail.com> (cherry picked from commit d7be916) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/server/HiveTableFactory.java # fe/fe-core/src/main/java/com/starrocks/server/HudiTableFactory.java # fe/fe-core/src/main/java/com/starrocks/server/IcebergTableFactory.java # fe/fe-core/src/test/java/com/starrocks/catalog/HiveTableTest.java # fe/fe-core/src/test/java/com/starrocks/catalog/HudiTableTest.java # fe/fe-core/src/test/java/com/starrocks/catalog/IcebergTableTest.java
#34844) Signed-off-by: yanz <dirtysalt1987@gmail.com> (cherry picked from commit d7be916) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/server/HiveTableFactory.java # fe/fe-core/src/main/java/com/starrocks/server/HudiTableFactory.java # fe/fe-core/src/main/java/com/starrocks/server/IcebergTableFactory.java # fe/fe-core/src/test/java/com/starrocks/catalog/HiveTableTest.java # fe/fe-core/src/test/java/com/starrocks/catalog/HudiTableTest.java # fe/fe-core/src/test/java/com/starrocks/catalog/IcebergTableTest.java
Why I'm doing:
What I'm doing:
Fixes https://github.com/StarRocks/StarRocksTest/issues/4706
The root cause of this problem is resource name has been lower cased since 2.5
From 2.5, we add a new concept
catalog
. And resource name has been added to catalog name(a virtual catalog), and also lower cased. And when we fetch resource name from this catalog name, we get lower cased resource name.However this lower cased resource name can not be found when we downgrade FE to version 2.3. There is no catalog concept in that version, and we use
ResourceMgr.java
to find resource.So to fix this problem, resource name can not be fetched from catalog name, but from properties.
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: