Skip to content

Commit db7a8e4

Browse files
authored
Merge branch 'master' into docs/perf-early-filters
2 parents fccac79 + e5179a1 commit db7a8e4

File tree

23 files changed

+1018
-416
lines changed

23 files changed

+1018
-416
lines changed

Gopkg.lock

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[constraint]]
22
name = "gopkg.in/src-d/go-mysql-server.v0"
3-
revision = "749adb47d4bf0620e578641e59e8c63192362849"
3+
revision = "541fde3b92093b3a449e803342a7a18c686275e6"
44

55
[[constraint]]
66
name = "github.com/jessevdk/go-flags"
@@ -84,6 +84,10 @@
8484
name = "gopkg.in/src-d/go-vitess.v1"
8585
version = "1.6.0"
8686

87+
[[constraint]]
88+
name = "github.com/hhatto/gocloc"
89+
revision = "c5379f7427f9a9a5bec11accdf8a2ef7fa414d3e"
90+
8791
[prune]
8892
[[prune.project]]
8993
name = "gopkg.in/src-d/go-mysql-server.v0"

docs/using-gitbase/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
|:-----|:-----|:------------|
2727
|`INMEMORY_JOINS`|environment|If set it will perform all joins in memory. Default is off.|
2828
|`inmemory_joins`|session|If set it will perform all joins in memory. Default is off. This has precedence over `INMEMORY_JOINS`.|
29-
|`MAX_MEMORY_INNER_JOIN`|environment|The maximum number of memory, in megabytes, that can be consumed by go-mysql-server before switching to multipass mode in inner joins. Default is the 20% of all available physical memory.|
30-
|`max_memory_joins`|session|The maximum number of memory, in megabytes, that can be consumed by go-mysql-server before switching to multipass mode in inner joins. Default is the 20% of all available physical memory. This has precedence over `MAX_MEMORY_INNER_JOIN`.|
29+
|`MAX_MEMORY_JOIN`|environment|The maximum number of memory, in megabytes, that can be consumed by go-mysql-server before switching to multipass mode in joins. Default is the 20% of all available physical memory.|
30+
|`max_memory_joins`|session|The maximum number of memory, in megabytes, that can be consumed by go-mysql-server before switching to multipass mode in joins. Default is the 20% of all available physical memory. This has precedence over `MAX_MEMORY_JOIN`.|
3131
|`DEBUG_ANALYZER`|environment|If set, the analyzer will print debug messages. Default is off.|
3232
|`PILOSA_INDEX_THREADS`|environment|Number of threads used in index creation. Default is the number of cores available in the machine.|
3333
|`pilosa_index_threads`|environment|Number of threads used in index creation. Default is the number of cores available in the machine. This has precedence over `PILOSA_INDEX_THREADS`.|

docs/using-gitbase/functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ These are all functions that are available because they are implemented in `go-m
2626
|`AVG(expr)`|Returns the average value of expr in all rows.|
2727
|`CEIL(number)`|Return the smallest integer value that is greater than or equal to `number`.|
2828
|`CEILING(number)`|Return the smallest integer value that is greater than or equal to `number`.|
29+
|`CHAR_LENGTH(str)`|Return the length of the string in characters.|
2930
|`COALESCE(...)`|The function returns the first non-null value in a list.|
3031
|`CONCAT(...)`|Concatenate any group of fields into a single string.|
3132
|`CONCAT_WS(sep, ...)`|Concatenate any group of fields into a single string. The first argument is the separator for the rest of the arguments. The separator is added between the strings to be concatenated. The separator can be a string, as can the rest of the arguments. If the separator is NULL, the result is NULL.|
@@ -46,6 +47,7 @@ These are all functions that are available because they are implemented in `go-m
4647
|`IS_BINARY(blob)`|Returns whether a BLOB is a binary file or not.|
4748
|`JSON_EXTRACT(json_doc, path, ...)`|Extracts data from a json document using json paths.|
4849
|`LEAST(...)`|Returns the smaller numeric or string value.|
50+
|`LENGTH(str)`|Return the length of the string in bytes.|
4951
|`LN(X)`|Return the natural logarithm of X.|
5052
|`LOG(X), LOG(B, X)`|If called with one parameter, this function returns the natural logarithm of X. If called with two parameters, this function returns the logarithm of X to the base B. If X is less than or equal to 0, or if B is less than or equal to 1, then NULL is returned.|
5153
|`LOG10(X)`|Returns the base-10 logarithm of X.|

docs/using-gitbase/indexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ and for the second query also two indexes will be used and the result will be a
2626

2727
You can find some more examples in the [examples](./examples.md#create-an-index-for-columns-on-a-table) section.
2828

29-
See [go-mysql-server](https://github.com/src-d/go-mysql-server/tree/749adb47d4bf0620e578641e59e8c63192362849#indexes) documentation for more details
29+
See [go-mysql-server](https://github.com/src-d/go-mysql-server/tree/541fde3b92093b3a449e803342a7a18c686275e6#indexes) documentation for more details

internal/function/loc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestLoc(t *testing.T) {
2323
{"too many args given", sql.NewRow("foo.rb", "bar", "baz"), nil, sql.ErrInvalidArgumentNumber},
2424
{"invalid blob type given", sql.NewRow("foo", 5), nil, sql.ErrInvalidType},
2525
{"path and blob are given", sql.NewRow("foo", "#!/usr/bin/env python\n\nprint 'foo'"), &gocloc.ClocFile{
26-
Code: 2, Comments: 0, Blanks: 1, Name: "foo", Lang: "",
26+
Code: 2, Comments: 0, Blanks: 1, Name: "foo", Lang: "Python",
2727
}, nil},
2828
}
2929

vendor/github.com/hhatto/gocloc/.travis.yml

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hhatto/gocloc/file.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hhatto/gocloc/file_test.go

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hhatto/gocloc/language.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/README.md

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/analyzer/convert_dates.go

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/analyzer/pushdown.go

Lines changed: 18 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/analyzer/resolve_orderby.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/expression/arithmetic.go

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-mysql-server.v0/sql/expression/boolean.go

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)