Commit Graph

5683 Commits (c0d7143d7a66b0d2196dc1bb7777f0e2b47a2fd6)

Author SHA1 Message Date
Todd Persen c89567d07d Update CHANGELOG.md
[skip ci]
2015-05-14 17:03:18 -07:00
Todd Persen 1fa84c9387 Merge pull request #2579 from influxdb/aggregate-where-groupby-fix-2557
Fix false positive error for `aggregate functions with GROUP BY time …
2015-05-14 17:02:27 -07:00
Todd Persen 7591a8cc61 Update CHANGELOG.md
[skip ci]
2015-05-14 15:46:53 -07:00
Jason Wilder a5b8f2f924 Merge pull request #2569 from influxdb/jw-1822
Add derivative functions
2015-05-14 16:33:18 -06:00
Jason Wilder 61712d82fb Prevent division by 0 for derivative 2015-05-14 16:13:09 -06:00
Jason Wilder 34007a8be9 Make duration argument optional for derivatives
If it's not specified, it defaults to 1s for raw queries and to the
group by duration on group by queries.
2015-05-14 16:13:04 -06:00
Cory LaNou 3396cf175c update changelog 2015-05-14 15:47:18 -06:00
Jason Wilder faa099a382 Fix code review comments 2015-05-14 15:45:57 -06:00
Cory LaNou 098c65ad18 fix false positive error for `aggregate functions with GROUP BY time require a WHERE time clause` 2015-05-14 15:45:13 -06:00
Philip O'Toole ae8a7d987f Merge pull request #2578 from haim0n/master
add support for package dependencies
2015-05-14 15:14:21 -04:00
Haim Daniel e742c376e2 package.sh: restore lost newline 2015-05-14 22:11:35 +03:00
Haim Daniel d109efa55d package.sh: add support for package dependencies
Putting a dependency on the coreutils package provides more robust way
to be installed in environments in which the basic sh-utils
(e.g. 'ln' cmd, which is used for service init script link) is not
present. Red Hat's anaconda is an example for such environment.

Signed-off-by: Haim Daniel <haimdaniel@gmail.com>
2015-05-14 22:01:19 +03:00
Philip O'Toole 3e183165df Update CHANGELOG for PR2566
[ci skip]
2015-05-14 08:17:53 -07:00
Ben Johnson d3823b3acf Merge pull request #2566 from influxdb/apply-wait
Wait for quorum write before returning from Log.Apply().
2015-05-13 16:33:47 -06:00
Jason Wilder a3edae082b Update changelog 2015-05-13 16:19:21 -06:00
Ben Johnson 00ce4a504e Wait for quorum write before returning from Log.Apply().
This commit ensures a commit is written to a quorum before returning
from Log.Apply().
2015-05-13 16:05:26 -06:00
Jason Wilder 98521b273e Add non_negative_derivative
Fixes #1477
2015-05-13 15:57:48 -06:00
Jason Wilder a0a4600e7f Add derivative function
Calculates the derivative of consequtive points and normalizes the
value to a given interval.  It supports simple derivates over
fields as well as nested derivatives over another aggregate function.

Fixes #1822
2015-05-13 15:35:42 -06:00
Jason Wilder 7fd9a0acd3 Add validation for derivative arguments
Derivative must be of the form derviative(field, duration) or
derivative(agg(field), duration).
2015-05-13 15:35:42 -06:00
Jason Wilder eb1d7a659f Prohibit multiple columns in select when using derivative
May be supported in the future but workaround is to run separate
queries.
2015-05-13 15:35:42 -06:00
Jason Wilder 9c0584325f Add support for parsing derivative w/ nested functions 2015-05-13 15:35:42 -06:00
Todd Persen 2de4bf22e0 Update CHANGELOG.md 2015-05-13 12:40:44 -07:00
Todd Persen b213388655 Merge pull request #2558 from vladlopes/fix-client-responsecheck
Fix client response check after PR #2298
2015-05-13 12:37:19 -07:00
Vladimir Lopes d8e3de68c4 Check for nil response on Client write test 2015-05-13 16:13:37 -03:00
Vladimir Lopes 4b4aaf24ab Fix TestClientLibrary test
The Client return a nil (json null) response on a sucessful write
2015-05-13 15:45:22 -03:00
Vladimir Lopes 6d612c4d57 Return StatusNoContent on Client write test 2015-05-13 15:44:31 -03:00
Vladimir Lopes 92954c1217 Fix client response check after PR #2298
The write endpoint is returning StatusNoContent instead of StatusOK
when the write is successful.
2015-05-13 10:22:06 -03:00
Philip O'Toole e09cdede4a Correct CHANGELOG for PR2545
[ci skip]
2015-05-12 19:36:41 -07:00
Philip O'Toole f27e97e254 Update CHANGELOG for PR 2545
[ci skip]
2015-05-12 19:34:56 -07:00
Philip O'Toole 095482855f Merge pull request #2545 from cannium/use-value-as-field-name
Use "value" as the field name also in graphite
2015-05-12 19:33:08 -07:00
Can ZHANG 84a713f07f Use "value" as the field name in graphite
Also fix tests.
2015-05-13 09:31:20 +08:00
Philip O'Toole acf2dd6ba5 Release RC30
[ci skip]
2015-05-12 16:05:19 -07:00
Philip O'Toole 6ccb08b920 Merge pull request #2553 from influxdb/fix_cq_race
Fix races in CQ execution
2015-05-12 16:03:06 -07:00
Philip O'Toole beb58eeb18 Refactor CQ code to avoid race conditions.
Fixes race detected by CircleCI:

https://circle-artifacts.com/gh/influxdb/influxdb/2332/artifacts/1/tmp/circle-artifacts.8UTeJCy/test_logs_race.txt
2015-05-12 15:50:46 -07:00
Philip O'Toole 8cced04917 Merge pull request #2552 from influxdb/invoke_desired_cq
Run CQ passed into goroutine, not from outer loop
2015-05-12 15:38:55 -07:00
Philip O'Toole 4446274577 Run CQ passed into goroutine, not from outer loop 2015-05-12 15:00:37 -07:00
Philip O'Toole 557b311f1d Merge pull request #2549 from influxdb/5_second_timeout
Default Raft election timeout to 5 seconds
2015-05-12 14:01:32 -07:00
Philip O'Toole f063ebfad2 Default Raft election timeout to 5 seconds 2015-05-12 13:57:28 -07:00
Paul Dix cb4d90666e Update CHANGELOG.md 2015-05-12 16:43:23 -04:00
Paul Dix 2e57952903 Merge pull request #2547 from neonstalwart/fix/2487
handle aggregations with 0 intervals
2015-05-12 16:42:14 -04:00
Philip O'Toole 67416756b8 Merge pull request #2548 from influxdb/numeric_agg_check
Numeric aggregation check
2015-05-12 13:31:23 -07:00
Philip O'Toole 573e705e1a Update CHANGELOG 2015-05-12 13:26:23 -07:00
Philip O'Toole c34581b089 Unit test numeric aggregate check 2015-05-12 13:26:21 -07:00
ben hockey 8e02595b3e handle aggregations with 0 intervals 2015-05-12 15:21:31 -05:00
Philip O'Toole 2281b5e1da Remove now-unneeded field check
This check has been moved to earlier in the planning phase.
2015-05-12 13:20:36 -07:00
Philip O'Toole 8ac6d80016 Numeric fields only when using numeric aggregates 2015-05-12 13:20:33 -07:00
Todd Persen 0e51843c59 Update CHANGELOG.md 2015-05-12 12:41:33 -07:00
Todd Persen 0854913b66 Merge pull request #2298 from neonstalwart/write-204-status
return no content status (204) for succesful write
2015-05-12 12:40:08 -07:00
Cory LaNou dca9859e50 Merge pull request #2540 from influxdb/count-group-where
Throw parser error for aggregate functions with group by time without where time clause
2015-05-12 09:20:09 -06:00
Cory LaNou eb1a4f669a refactor selectStatement validate 2015-05-12 08:56:38 -06:00