Giter Site home page Giter Site logo

athenai's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

athenai's Issues

Support Windows

  • Test on Windows using Appveyor
  • Release Windows binary after confirming it works on Windows

Add support for encrypting query results on S3

Design

$ athenai run --encrypt SSE_KMS --kms <KMS_KEY_ARN> ...
  • --encrypt/-e: specify the type of encryption for query results.
    • Valid values: SSE_S3, SSE_KMS or CSE_KMS
  • --kms/-k: KMS key ARN or ID. Only used for SSE_KMS and CSE_KMS.

Reference: EncryptionConfiguration - Amazon Athena API Reference

Implementation

  1. Add usage of encryption into README
  2. Add flags --encrypt and --kms
  3. Add flag values to StartQueryExecution API parameters
  4. Add tests
  5. Confirm query results are encrypted on S3
  6. Update --help usage description on run subcommand

Support config file

  • region
  • database
  • output / location
  • format / output
  • profile
  • section (ini)

The location is $HOME/.athenai/config.

Fix a bug where TestShowResults sometime panics by index out of range

TestShowResults sometimes panics by index out of range.
Investigate and fix the cause.

--- FAIL: TestShowResults (0.00s)
panic: runtime error: index out of range [recovered]
	panic: runtime error: index out of range

goroutine 118 [running]:
testing.tRunner.func1(0xc42029fad0)
	/usr/local/go/src/testing/testing.go:622 +0x55f
panic(0xadd680, 0xea0b00)
	/usr/local/go/src/runtime/panic.go:489 +0x2f0
github.com/skatsuta/athenai/core.(*stubFilter).Run(0xc42025d800, 0xe76f60, 0xc420086d68, 0xb622be, 0x1)
	/go/src/github.com/skatsuta/athenai/core/athenai_test.go:547 +0x330
github.com/skatsuta/athenai/core.(*Athenai).filterQueryExecutions(0xc4201ca4d0, 0xc42025fa00, 0x0, 0x32, 0x0, 0x32, 0x0, 0x0, 0x0)
	github.com/skatsuta/athenai/core/_test/_obj_test/athenai.go:517 +0x95e
github.com/skatsuta/athenai/core.(*Athenai).selectQueryExecutions(0xc4201ca4d0, 0xe76f20, 0xc4201b5cc0, 0x0, 0x0, 0x0, 0x0, 0x0)
	github.com/skatsuta/athenai/core/_test/_obj_test/athenai.go:568 +0x289
github.com/skatsuta/athenai/core.(*Athenai).ShowResults(0xc4201ca4d0)
	github.com/skatsuta/athenai/core/_test/_obj_test/athenai.go:613 +0x227
github.com/skatsuta/athenai/core.TestShowResults(0xc42029fad0)
	/go/src/github.com/skatsuta/athenai/core/athenai_test.go:751 +0x2928
testing.tRunner(0xc42029fad0, 0xb81100)
	/usr/local/go/src/testing/testing.go:657 +0x108
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:697 +0x544
FAIL	github.com/skatsuta/athenai/core	0.170s

Print table header

Scan ColumnInfo at first and then skip the first row if it's same as the header.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.