Skip to content

test: sqlness test for insert default#873

Merged
evenyag merged 5 commits intoGreptimeTeam:developfrom
waynexia:sqlness-insert-default
Jan 13, 2023
Merged

test: sqlness test for insert default#873
evenyag merged 5 commits intoGreptimeTeam:developfrom
waynexia:sqlness-insert-default

Conversation

@waynexia
Copy link
Copy Markdown
Member

Signed-off-by: Ruihang Xia waynestxia@gmail.com

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Add sqlness tests for INSERT DEFAULT implemented in #854.

cc @lizhemingi please take a look!

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2023

Codecov Report

Merging #873 (f152b60) into develop (d162fbb) will decrease coverage by 0.11%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #873      +/-   ##
===========================================
- Coverage    86.25%   86.13%   -0.12%     
===========================================
  Files          425      425              
  Lines        56638    56638              
===========================================
- Hits         48853    48786      -67     
- Misses        7785     7852      +67     
Flag Coverage Δ
rust 86.13% <ø> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/datanode/src/error.rs 65.95% <ø> (ø)
src/frontend/src/error.rs 12.00% <ø> (ø)
src/object-store/src/test_util.rs 0.00% <0.00%> (-100.00%) ⬇️
src/datanode/src/instance.rs 50.00% <0.00%> (-15.87%) ⬇️
tests-integration/src/test_util.rs 87.55% <0.00%> (-11.99%) ⬇️
src/servers/src/error.rs 35.18% <0.00%> (-5.56%) ⬇️
src/servers/src/opentsdb.rs 96.82% <0.00%> (-1.59%) ⬇️
src/servers/src/postgres/handler.rs 90.29% <0.00%> (-0.38%) ⬇️
src/meta-srv/src/error.rs 95.90% <0.00%> (+0.58%) ⬆️
src/common/substrait/src/df_logical.rs 77.89% <0.00%> (+0.87%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lizhemingi
Copy link
Copy Markdown
Contributor

Should we add a test like a column can not build a default value atomically(such as no default constraint TIME INDEX column) but use this default insert, and expect it will fail ?

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Comment thread tests/cases/standalone/insert/insert_default.result Outdated
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Copy link
Copy Markdown
Member

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008
Copy link
Copy Markdown
Member

@waynexia CI / Sqlness Test (pull_request) Failing after 2m

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@evenyag evenyag merged commit bae0243 into GreptimeTeam:develop Jan 13, 2023
@waynexia waynexia deleted the sqlness-insert-default branch January 13, 2023 16:39
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* test: sqlness test for insert default

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* empty line

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* add more sqls

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix typos

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update test according to typo fix

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants