Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Fix ordering in README
Browse files Browse the repository at this point in the history
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>

Discard changes in unrelated file

Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
  • Loading branch information
Juanjo Alvarez committed Apr 17, 2019
1 parent ef350d5 commit c19f89a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ We support and actively test against certain third-party clients to ensure compa
|`DAYOFWEEK(date)`|Returns the day of the week of the given date.|
|`DAYOFYEAR(date)`|Returns the day of the year of the given date.|
|`FLOOR(number)`|Return the largest integer value that is less than or equal to `number`.|
|`FROM_BASE64(str)`|Decodes the base64-encoded string str.|
|`HOUR(date)`|Returns the hours of the given date.|
|`IFNULL(expr1, expr2)`|If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2.|
|`IS_BINARY(blob)`|Returns whether a BLOB is a binary file or not.|
Expand Down Expand Up @@ -107,7 +108,6 @@ We support and actively test against certain third-party clients to ensure compa
|`SUBSTRING(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
|`SUM(expr)`|Returns the sum of expr in all rows.|
|`TO_BASE64(str)`|Encodes the string str in base64 format.|
|`FROM_BASE64(str)`|Decodes the base64-encoded string str.|
|`TRIM(str)`|Returns the string str with all spaces removed.|
|`UPPER(str)`|Returns the string str with all characters in upper case.|
|`WEEKDAY(date)`|Returns the weekday of the given date.|
Expand Down
8 changes: 0 additions & 8 deletions engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,14 +909,6 @@ var queries = []struct {
"SELECT FROM_BASE64('YmFy')",
[]sql.Row{{string("bar")}},
},
{
"SELECT DISTINCT 1, 2",
[]sql.Row{{int64(1), int64(2)}},
},
{
"SELECT DISTINCT(1,2)",
[]sql.Row{},
},
}

func TestQueries(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions sql/analyzer/optimization_rules.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package analyzer

import (
"gopkg.in/src-d/go-errors.v1"
errors "gopkg.in/src-d/go-errors.v1"
"gopkg.in/src-d/go-mysql-server.v0/sql"
"gopkg.in/src-d/go-mysql-server.v0/sql/expression"
"gopkg.in/src-d/go-mysql-server.v0/sql/plan"
Expand Down Expand Up @@ -33,7 +33,6 @@ func optimizeDistinct(ctx *sql.Context, a *Analyzer, node sql.Node) (sql.Node, e
defer span.Finish()

a.Log("optimize distinct, node of type: %T", node)

if node, ok := node.(*plan.Distinct); ok {
var isSorted bool
_, _ = node.TransformUp(func(node sql.Node) (sql.Node, error) {
Expand Down
2 changes: 1 addition & 1 deletion sql/analyzer/validation_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package analyzer
import (
"strings"

"gopkg.in/src-d/go-errors.v1"
errors "gopkg.in/src-d/go-errors.v1"
"gopkg.in/src-d/go-mysql-server.v0/sql"
"gopkg.in/src-d/go-mysql-server.v0/sql/expression"
"gopkg.in/src-d/go-mysql-server.v0/sql/plan"
Expand Down

0 comments on commit c19f89a

Please sign in to comment.