Skip to content

Commit 20954f5

Browse files
- AWS XML issue fixed.
1 parent 07c2452 commit 20954f5

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
"insert into google.storage.buckets( project, data__name) select 'testing-project', 'silly-bucket' returning projectNumber;",
179179
"insert /*+ AWAIT */ into google.compute.networks(project, data__name, data__autoCreateSubnetworks) select 'mutable-project', 'auto-test-01', false returning creationTimestamp, name;",
180180
"registry pull google 'v0.1.2'; show resources in google.storage; registry pull google 'v0.1.1-alpha01'; show resources in google.storage; registry pull google 'v0.1.0'; show resources in google.storage;",
181+
"select * from aws.iam.user_policies where region = 'us-east-1' and UserName = 'joe.blow' order by member asc;",
181182
],
182183
"default": "show providers;"
183184
},

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require (
1616
github.com/spf13/cobra v1.4.0
1717
github.com/spf13/pflag v1.0.5
1818
github.com/spf13/viper v1.10.1
19-
github.com/stackql/any-sdk v0.2.2-alpha20
19+
github.com/stackql/any-sdk v0.2.2-alpha23
2020
github.com/stackql/go-suffix-map v0.0.1-alpha01
2121
github.com/stackql/psql-wire v0.1.1-beta23
2222
github.com/stackql/stackql-parser v0.0.15-alpha06

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
461461
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
462462
github.com/spf13/viper v1.10.1 h1:nuJZuYpG7gTj/XqiUwg8bA0cp1+M2mC3J4g5luUYBKk=
463463
github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU=
464-
github.com/stackql/any-sdk v0.2.2-alpha20 h1:2IhyktdpUY4pcBJOPsU+YtFM6qZD8vfZGS4XBzkIUsQ=
465-
github.com/stackql/any-sdk v0.2.2-alpha20/go.mod h1:m1o5TCfyKkdt2bREB3itwPv1MhM+lk4eu24KpPohFoY=
464+
github.com/stackql/any-sdk v0.2.2-alpha23 h1:bdhFQD7wXaMcLFJlIio0WMwzp4A9pUy0aafLfdpnb5M=
465+
github.com/stackql/any-sdk v0.2.2-alpha23/go.mod h1:m1o5TCfyKkdt2bREB3itwPv1MhM+lk4eu24KpPohFoY=
466466
github.com/stackql/go-suffix-map v0.0.1-alpha01 h1:TDUDS8bySu41Oo9p0eniUeCm43mnRM6zFEd6j6VUaz8=
467467
github.com/stackql/go-suffix-map v0.0.1-alpha01/go.mod h1:QAi+SKukOyf4dBtWy8UMy+hsXXV+yyEE4vmBkji2V7g=
468468
github.com/stackql/psql-wire v0.1.1-beta23 h1:1ayYMjZArfDcIMyEOKnm+Bp1zRCISw8pguvTFuUhhVQ=

internal/stackql/drm/drm_cfg.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ type Config interface {
4747
) (map[string]map[string]interface{}, map[int]map[int]interface{})
4848
GetCurrentTable(internaldto.HeirarchyIdentifiers) (internaldto.DBTable, error)
4949
GetRelationalType(string) string
50-
GenerateDDL(util.AnnotatedTabulation, anysdk.Provider, anysdk.Service, anysdk.Resource, anysdk.StandardOperationStore, int, bool, bool) ([]string, error)
50+
GenerateDDL(util.AnnotatedTabulation, anysdk.Provider,
51+
anysdk.Service, anysdk.Resource, anysdk.StandardOperationStore,
52+
int, bool, bool) ([]string, error)
5153
GetControlAttributes() sqlcontrol.ControlAttributes
5254
GetGolangValue(string) interface{}
5355
GetGolangSlices([]typing.ColumnMetadata) ([]interface{}, []string)
@@ -109,7 +111,6 @@ type staticDRMConfig struct {
109111
typCfg typing.Config
110112
analyzerFactoryFactory discovery.StaticAnalyzerFactoryFactory
111113
persistenceSystem sdk_persistence.PersistenceSystem
112-
registryAPI anysdk.RegistryAPI
113114
}
114115

115116
func (dc *staticDRMConfig) GetSQLSystem() sql_system.SQLSystem {

internal/stackql/handler/handler.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ func (hc *standardHandlerContext) GetProvider(providerName string) (provider.IPr
328328
prov, ok := hc.providers[providerName]
329329
//nolint:nestif // TODO: review
330330
if !ok {
331-
prov, err = provider.GenerateProvider(hc.runtimeContext, ds.Name, ds.Tag, hc.registry, hc.sqlSystem, hc.persistenceSystem)
331+
prov, err = provider.GenerateProvider(
332+
hc.runtimeContext, ds.Name, ds.Tag,
333+
hc.registry, hc.sqlSystem, hc.persistenceSystem)
332334
if err == nil {
333335
hc.providers[providerName] = prov
334336
// update auth info with provider default if auth not already present

internal/stackql/router/obtain_context/obtain_context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func ObtainAnnotationCtx(
2828
if err != nil {
2929
return nil, err
3030
}
31+
// TODO: emulate in address space
3132
itemObjS, selectItemsKey, err := schema.GetSelectSchema(tbl.LookupSelectItemsKey(), mediaType)
3233
unsuitableSchemaMsg := "schema unsuitable for select query"
3334
if err != nil {

0 commit comments

Comments
 (0)