minio/pkg
Ryan Tam bd56f80250 Fix ignored alias for aggregate result in S3 Select (#7849)
The SQL parser as it stands right now ignores alias for aggregate
result, e.g. `SELECT COUNT(*) AS thing FROM s3object` doesn't actually
return record like `{"thing": 42}`, it returns a record like `{"_1": 42}`.
Column alias for aggregate result is supported in AWS's S3 Select, so
this commit fixes that by respecting the `expr.As` in the expression.

Also improve test for S3 select

On top of testing a simple `SELECT` query, we want to test a few more
"advanced" queries (e.g. aggregation).

Convert existing tests into table driven tests[1], and add the new test
cases with "advanced" queries into them.

[1] - https://github.com/golang/go/wiki/TableDrivenTests
2019-07-03 16:34:54 -07:00
..
auth Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
bpool Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
certs Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
cgroup Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
cpu Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
disk Use O_DIRECT while writing to disk (#7479) 2019-04-23 21:25:06 -07:00
dns Ignore srvRecords from domain level entries (#7742) 2019-06-03 16:16:05 -07:00
ellipses Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
event golint: fix redundant code logic (#7842) 2019-06-27 15:18:33 +05:30
handlers Add admin API to send trace notifications to registered (#7128) 2019-06-08 15:54:41 -07:00
hash Turn off md5sum optionally if content-md5 is not set (#7609) 2019-05-08 18:35:40 -07:00
iam Add support for session policies in STS APIs (#7747) 2019-06-20 15:28:33 -07:00
ioutil Avoid using io.ReadFull() for WriteAll and CreateFile (#7676) 2019-05-22 13:47:15 -07:00
lock Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
madmin Simplify HTTP trace related code (#7833) 2019-06-26 22:41:12 -07:00
mem Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
mimedb Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
mountinfo Fixes for multiplatform dev and testing from forks (#7734) 2019-06-04 00:59:40 -07:00
net Support IPv6 hosts for postgres connections (#7168) 2019-05-03 17:31:33 +05:30
policy Update go mod with sem versions of our libraries (#7687) 2019-05-29 16:35:12 -07:00
pubsub Simplify HTTP trace related code (#7833) 2019-06-26 22:41:12 -07:00
quick Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
s3select Fix ignored alias for aggregate result in S3 Select (#7849) 2019-07-03 16:34:54 -07:00
safe Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
sync/errgroup Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
sys Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
trace Trace: Replace function name with API prefix (#7794) 2019-06-18 13:55:13 -07:00
trie Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
wildcard Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
words Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00