Comments (3)
Huge thanks to @mrsufgi
from athenadriver.
Thanks @mrsufgi for the great report.
Do you mean the minor bug is from S3 or athenadriver? Athenadriver/Athena doesn't create outputlocation
folder automatically. (It does create sub-folders to store query results though.)
If you create local
folder in your bucket first, the results should be inside the local
folder. If not, could you please show me your code and screenshot so I can reproduce it? Thanks a lot.
from athenadriver.
I don't know where the bug originates but I can help u reproduce.
My bucket before running a query:
func Test_athenaTasksRepository_GetTaskDuration(t *testing.T) {
os.Setenv("AWS_SDK_LOAD_CONFIG", "1")
conf, _ := drv.NewDefaultConfig("s3://athenaplayground/local/", "us-west-2", "none", "none") // using IAM role!
conn, err := sql.Open(drv.DriverName, conf.Stringify())
if err != nil {
log.Fatal(err)
}
ar := NewAthenaTasksRepository(conn)
type args struct {
id string
}
tests := []struct {
name string
ar domain.TasksRepository
args args
want int
wantErr bool
}{
{"happy task", ar, args{id: "5eb00783a3f41400105a0e55"}, 1189, false},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
got, err := tt.ar.GetTaskDuration(tt.args.id)
if (err != nil) != tt.wantErr {
t.Errorf("athenaTasksRepository.GetTaskDuration() error = %v, wantErr %v", err, tt.wantErr)
return
}
if got != tt.want {
t.Errorf("athenaTasksRepository.GetTaskDuration() = %v, want %v", got, tt.want)
}
})
}
}
after running the test (which runs simple SELECT query)
the local
folder I created is empty, and the new empty name folder has a local
folder with the results inside that folder.
from athenadriver.
Related Issues (20)
- Athenareader output prettified
- Query by QID not working in Athenareader
- Client side cache
- `$path` is not supported HOT 2
- Vv
- SQL go to QID branch when query has uuid-type string in it
- Need to support multi type credentials such as STS credentials
- Serialization problems HOT 8
- Expose DriverTracer factory methods
- Authentication problem with Lambda function HOT 7
- Missing example for `get_cost` pseudo command HOT 1
- Allow connector to create an AWS session with default credentials HOT 3
- Override athena endpoint HOT 2
- ResultReuse Support HOT 1
- Allow returning nil for missing values HOT 1
- When calling from go routing, getting DATA RACE HOT 1
- Is there a way to override the constant PoolInterval HOT 2
- aws-sdk-go-v2 support
- Asynchronous Query Support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from athenadriver.