-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebased onto main with bundle changes, addressed PR feedback, test pa…
…sses when using real config.toml connection locally, pushing to test on Github now fix code quality failure, loosen restriction on checking stderr when CLI's config.toml has insufficient permissions
- Loading branch information
1 parent
f3380c5
commit a6f2fb0
Showing
13 changed files
with
248 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,102 @@ | ||
# serializer version: 1 | ||
# name: test_full_lifecycle_with_codegen | ||
''' | ||
call codegen_nativeapp_af3d785601654fa0a9a105883b626866_app.ext_code_schema.py_echo_proc('test') | ||
+-----------------+ | ||
| PY_ECHO_PROC | | ||
|-----------------| | ||
| echo_proc: test | | ||
+-----------------+ | ||
|
||
''' | ||
dict_values(['echo_proc: test']) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.1 | ||
''' | ||
select codegen_nativeapp_af3d785601654fa0a9a105883b626866_app.ext_code_schema.py_echo_fn('test') | ||
+------------------------------------------------------------------------------+ | ||
| CODEGEN_NATIVEAPP_AF3D785601654FA0A9A105883B626866_APP.EXT_CODE_SCHEMA.PY_EC | | ||
| HO_FN('TEST') | | ||
|------------------------------------------------------------------------------| | ||
| echo_fn: test | | ||
+------------------------------------------------------------------------------+ | ||
|
||
''' | ||
dict_values(['echo_fn: test']) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.10 | ||
dict_values([10]) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.2 | ||
''' | ||
select codegen_nativeapp_af3d785601654fa0a9a105883b626866_app.ext_code_schema.echo_fn_2('test') | ||
+------------------------------------------------------------------------------+ | ||
| CODEGEN_NATIVEAPP_AF3D785601654FA0A9A105883B626866_APP.EXT_CODE_SCHEMA.ECHO_ | | ||
| FN_2('TEST') | | ||
|------------------------------------------------------------------------------| | ||
| echo_fn: test | | ||
+------------------------------------------------------------------------------+ | ||
|
||
''' | ||
dict_values(['echo_fn: infile: test']) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.3 | ||
''' | ||
select codegen_nativeapp_af3d785601654fa0a9a105883b626866_app.ext_code_schema.echo_fn_4('test') | ||
+------------------------------------------------------------------------------+ | ||
| CODEGEN_NATIVEAPP_AF3D785601654FA0A9A105883B626866_APP.EXT_CODE_SCHEMA.ECHO_ | | ||
| FN_4('TEST') | | ||
|------------------------------------------------------------------------------| | ||
| echo_fn: test | | ||
+------------------------------------------------------------------------------+ | ||
|
||
''' | ||
dict_values(['echo_fn: test']) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.4 | ||
''' | ||
call codegen_nativeapp_af3d785601654fa0a9a105883b626866_app.ext_code_schema.add_sp(1, 2) | ||
+--------+ | ||
| ADD_SP | | ||
|--------| | ||
| 3 | | ||
+--------+ | ||
|
||
''' | ||
dict_values(['echo_fn: test']) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.5 | ||
dict_values([3]) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.6 | ||
dict_values([10]) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.7 | ||
''' | ||
select codegen_nativeapp_af3d785601654fa0a9a105883b626866_app.ext_code_schema.sum_int_dec(10) | ||
+------------------------------------------------------------------------------+ | ||
| CODEGEN_NATIVEAPP_AF3D785601654FA0A9A105883B626866_APP.EXT_CODE_SCHEMA.SUM_I | | ||
| NT_DEC(10) | | ||
|------------------------------------------------------------------------------| | ||
| 10 | | ||
+------------------------------------------------------------------------------+ | ||
[ | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
} | ||
] | ||
|
||
''' | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.6 | ||
# name: test_full_lifecycle_with_codegen.8 | ||
dict_values(['echo_fn: infile: test']) | ||
# --- | ||
# name: test_full_lifecycle_with_codegen.9 | ||
''' | ||
select * from TABLE(codegen_nativeapp_af3d785601654fa0a9a105883b626866_app.ext_code_schema.alt_int(10)) | ||
+--------+ | ||
| NUMBER | | ||
|--------| | ||
| 1 | | ||
| -1 | | ||
| 1 | | ||
| -1 | | ||
| 1 | | ||
| -1 | | ||
| 1 | | ||
| -1 | | ||
| 1 | | ||
| -1 | | ||
+--------+ | ||
[ | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
}, | ||
{ | ||
"NUMBER": 1 | ||
}, | ||
{ | ||
"NUMBER": -1 | ||
} | ||
] | ||
|
||
''' | ||
# --- |
This file was deleted.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
tests_e2e/test_data/nativeapp/python/cli_gen/ignored/i1.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2024 Snowflake Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
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 |
---|---|---|
@@ -1 +1,17 @@ | ||
<!-- | ||
Copyright (c) 2024 Snowflake Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
DUMMY README FILE |
16 changes: 16 additions & 0 deletions
16
tests_e2e/test_data/nativeapp/root_files/setup_scripts/setup.sql
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
16 changes: 16 additions & 0 deletions
16
tests_e2e/test_data/nativeapp/root_files/setup_scripts/user_gen_procs.sql
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
16 changes: 16 additions & 0 deletions
16
tests_e2e/test_data/nativeapp/root_files/setup_scripts/user_gen_udf.sql
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
Oops, something went wrong.