-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Enhancement](maxCompute)Implement compatibility with existing maxcompute catalogs from previous versions. #41386
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
TeamCity be ut coverage result: |
| timeZone = ZoneId.of(timeZoneName); | ||
| } catch (Exception e) { | ||
| LOG.info(e.getMessage()); | ||
| LOG.info("set timeZoneName = " + timeZoneName + "fail, use systemDefault."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use LOG.warn, and use one line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wiil fix
| import java.util.stream.Collectors; | ||
|
|
||
| public class MaxComputeExternalCatalog extends ExternalCatalog { | ||
| private static final String endpointTemplate = "http://service.{}.maxcompute.aliyun-inc.com/api"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add aliyun doc link about this endpoint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok . i will add it
| if (props.containsKey(MCProperties.ENDPOINT)) { | ||
| endpoint = props.get(MCProperties.ENDPOINT); | ||
| return; | ||
| } else if (props.containsKey(MCProperties.TUNNEL_SDK_ENDPOINT)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some example in comment to explain this conversion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok . i will add it
| ScalarType dstType = ScalarType.createDatetimeV2Type(3); | ||
| return " \"" + dateLiteral.getStringValue(dstType) + "\" "; | ||
| } | ||
| // case DATETIME: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why comment out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should determine which time zone the datetime needs to be passed in.
| import com.google.common.collect.ImmutableList; | ||
| import com.google.gson.JsonObject; | ||
| import com.google.gson.JsonParser; | ||
| import jdk.internal.org.jline.utils.Log; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong log import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fix it
|
run buildall |
|
TeamCity be ut coverage result: |
morningman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
…pute catalogs from previous versions. (apache#41386) before pr apache#40225
…pute catalogs from previous versions. (apache#41386) before pr apache#40225
…pute catalogs from previous versions. (apache#41386) before pr apache#40225
…pute catalogs from previous versions. (apache#41386) before pr apache#40225 (cherry picked from commit e8a1a16)
…pute catalogs from previous versions. (apache#41386) before pr apache#40225
…pute catalogs from previous versions. (apache#41386) before pr apache#40225
…pute catalogs from previous versions. (apache#41386) before pr apache#40225
… Storage API.(apache#40225 , apache#40888 ,apache#41386 ) (apache#41610)" This reverts commit 8c0f73c.
… Storage API.(apache#40225 , apache#40888 ,apache#41386 ) (apache#41610)" This reverts commit 8c0f73c.
before pr #40225
Proposed changes
Issue Number: close #xxx