-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better function-not-found error messages (#344)
Summary: Pull Request resolved: #344 Improve error messages when (1) scalar or aggregate function doesn't exit or doesn't support specified input types; (2) SQL expression has syntax errors. Before: - Cannot resolve function call: sum(BIGINT) - Cannot resolve function call: from_unixtime(BIGINT) - Parser Error: syntax error at or near "b" After: - Aggregate function doesn't exist: sum. Registry of aggregate functions is empty. Make sure to register some aggregate functions. - Scalar function signature is not supported: to_unixtime(BIGINT). Supported signatures: (row(bigint,smallint)) -> double, (timestamp) -> double. - Cannot parse expression: func(a b). Parser Error: syntax error at or near "b" X-link: facebookincubator/velox#1685 Reviewed By: kagamiori Differential Revision: D36630439 Pulled By: mbasmanova fbshipit-source-id: 0ee4db468bb7c718371184ca29d1237279820760
- Loading branch information
1 parent
a71f34c
commit 4d94688
Showing
5 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters