Skip to content

Conversation

@andylokandy
Copy link
Contributor

@andylokandy andylokandy commented Mar 16, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

> select base64('a')
(1105, "Code: 1008, displayText = error: 
  --> SQL:1:8
  |
1 | select base64('a')
  |        ^^^^^^^^^^^ no function matches the given name: base64

.")

> select to_base64(1)
(1105, 'Code: 1065, displayText = error: 
  --> SQL:1:8
  |
1 | select to_base64(1)
  |        ^^^^^^^^^^^^ no overload satisfies `to_base64(UInt8)`

has tried possible overloads:
  to_base64(String) :: String            : unable to unify `UInt8` with `String`
  to_base64(String NULL) :: String NULL  : unable to unify `UInt8` with `String`

.')

> select 1 + 'a'
(1105, 'Code: 1001, displayText = error: 
  --> SQL:1:12
  |
1 | select 1 + 'a'
  |            ^^^ invalid digit found in string while evaluating function `to_uint8("a")`

.')
> create table t (a tuple(b int, c int))

> select t.a:z from t
(1105, 'Code: 1065, displayText = error: 
  --> SQL:1:11
  |
1 | select t.a:z from t
  |           ^^ tuple name `z` does not exist, available names are: ["b", "c"]

.')

> select * from t1 join t2 using (c)
(1105, 'Code: 1065, displayText = error: 
  --> SQL:1:33
  |
1 | select * from t1 join t2 using (c)
  |                                 ^ column c specified in USING clause does not exist in left table

.')

> select *
(1105, 'Code: 1065, displayText = error: 
  --> SQL:1:8
  |
1 | select *
  |        ^ SELECT * with no tables specified is not valid

.')

@vercel
Copy link

vercel bot commented Mar 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
databend ⬜️ Ignored (Inspect) Mar 17, 2023 at 8:24PM (UTC)

@mergify mergify bot added the pr-feature this PR introduces a new feature to the codebase label Mar 16, 2023
@andylokandy andylokandy requested a review from leiysky March 16, 2023 19:41
@BohuTANG
Copy link
Member

--- /workspace/tests/suites/0_stateless/20+_others/20_0013_pretty_error.result	2023-03-17 10:43:04.004283360 +0000
+++ /workspace/tests/suites/0_stateless/20+_others/20_0013_pretty_error.stdout	2023-03-17 10:48:31.534520856 +0000
@@ -44,6 +44,7 @@
   |                    ^ Unknown table 't'
 
 .
+ERROR 1105 (HY000) at line 1: Code: 2302, displayText = Table 't3' already exists.
 ERROR 1105 (HY000) at line 1: Code: 1065, displayText = error: 
   --> SQL:1:33

Copy link
Member

@BohuTANG BohuTANG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:+1

@BohuTANG BohuTANG merged commit 2b313c7 into databendlabs:main Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature this PR introduces a new feature to the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants