From fa1fb461b398ad166381d649b4f9cfa57ded3df5 Mon Sep 17 00:00:00 2001 From: Sandeep Bhardwaj Date: Tue, 29 Oct 2024 13:37:55 +0530 Subject: [PATCH] feat: add resource management support for maxcompute (#282) * feat: add initial resource mapping for maxcompute table * feat: improve validation, add table spec * tests: add test for table_spec and properties * feat: add code to create table on maxcompute * feat: initial setup of maxcompute store * feat: add maxcompute client and register maxcompute store * fix: change table handler initialization parameter type * fix: fix error on missing partition * fix: fix parameter type interface and handling error creation properly * fix: change partition column handling * test: add test for maxcompute client and table implementation * feat: implement checking existing table schema * chore: sort imports * feat: add support for views in maxcompute * feat: connect support for views * feat: implement standard table updation and improve view table * feat: add clustering support for table creation and update view * feat: implement alter table column with json type * test: add cluster table and view test * feat: implement schema format temporary for resource urn * chore: fix lint errors * chore: restructure file * chore: update golangci-lint action * feat: incorporate version 2 changes for maxcompute * update name to be used in create and update * fix: fix failure for decode * fix test and list issues * fix: handle name for view updation * test: fix the error on maxcompute test handle form * test: fix the error on maxcompute view handle form mock --------- Co-authored-by: Frederick Wijayadi Susilo Co-authored-by: Frederick Wijayadi Susilo --- ext/store/maxcompute/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/store/maxcompute/client.go b/ext/store/maxcompute/client.go index 7bc4b0c92e..27412eede2 100644 --- a/ext/store/maxcompute/client.go +++ b/ext/store/maxcompute/client.go @@ -40,6 +40,7 @@ func NewClient(svcAccount string) (*MaxComputeClient, error) { aliAccount := account.NewAliyunAccount(cred.AccessID, cred.AccessKey) odpsIns := odps.NewOdps(aliAccount, cred.Endpoint) + odpsIns.SetDefaultProjectName(cred.ProjectName) return &MaxComputeClient{odpsIns}, nil }