Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
select: don't cache when output_columns uses not stable function
- Loading branch information
Showing
3 changed files
with
148 additions
and
42 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
15 changes: 15 additions & 0 deletions
15
test/command/suite/select/cache/stable_function/output_columns.expected
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| table_create Records TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| load --table Records | ||
| [ | ||
| {} | ||
| ] | ||
| [[0,0.0,0.0],1] | ||
| #>select --output_columns "now()" --table "Records" | ||
| #:000000000000000 select(1) | ||
| #:000000000000000 output(1) | ||
| #<000000000000000 rc=0 | ||
| #>select --output_columns "now()" --table "Records" | ||
| #:000000000000000 select(1) | ||
| #:000000000000000 output(1) | ||
| #<000000000000000 rc=0 |
21 changes: 21 additions & 0 deletions
21
test/command/suite/select/cache/stable_function/output_columns.test
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| table_create Records TABLE_NO_KEY | ||
|
|
||
| load --table Records | ||
| [ | ||
| {} | ||
| ] | ||
|
|
||
| # For use cache | ||
| #@sleep 1 | ||
|
|
||
| #@collect-query-log true | ||
| #@disable-logging | ||
| select Records --output_columns 'now()' | ||
| #@enable-logging | ||
|
|
||
| #@sleep 1 | ||
|
|
||
| #@disable-logging | ||
| select Records --output_columns 'now()' | ||
| #@enable-logging | ||
| #@collect-query-log false |