Skip to content

Commit 32e4d76

Browse files
- Added robot test Insert Returning Simple Projection.
1 parent 7a856d9 commit 32e4d76

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

test/robot/functional/stackql_mocked_from_cmd_line.robot

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8482,23 +8482,19 @@ Select Materialized View of Join of Flattened Paginated Projection From Transfor
84828482

84838483
Insert Returning Simple Projection
84848484
[Documentation] Insert a row into a table and return projected new object values. Totally wrong atm.
8485-
${inputStr} = Catenate
8486-
... insert into google.storage.buckets( project, data__name) select 'testing-project', 'silly-bucket' returning projectNumber, name;
8485+
${inputStrSQLite} = Catenate
8486+
... insert into google.storage.buckets( project, data__name) select 'testing-project', 'silly-bucket' returning projectNumber, name, location, json_extract(iamConfiguration, '$.publicAccessPrevention') ic;
8487+
${inputStrPostgres} = Catenate
8488+
... insert into google.storage.buckets( project, data__name) select 'testing-project', 'silly-bucket' returning projectNumber, name, location, json_extract_path_text(iamConfiguration, 'publicAccessPrevention') ic;
84878489
# ${stdErrStr} = Catenate SEPARATOR=\n
84888490
# ... DDL Execution Completed
8489-
${outputStrSQLite} = Catenate SEPARATOR=\n
8490-
... |-----------------|--------------|
8491-
... |${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}val_0${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|${SPACE}${SPACE}${SPACE}${SPACE}val_1${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|
8492-
... |-----------------|--------------|
8493-
... |${SPACE}testing-project${SPACE}|${SPACE}silly-bucket${SPACE}|
8494-
... |-----------------|--------------|
8495-
${outputStrPostgres} = Catenate SEPARATOR=\n
8496-
... |-----------------|--------------|
8497-
... |${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}val_0${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|${SPACE}${SPACE}${SPACE}${SPACE}val_1${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|
8498-
... |-----------------|--------------|
8499-
... |${SPACE}testing-project${SPACE}|${SPACE}silly-bucket${SPACE}|
8500-
... |-----------------|--------------|
8501-
${outputStr} = Set Variable If "${SQL_BACKEND}" == "postgres_tcp" ${outputStrPostgres} ${outputStrSQLite}
8491+
${outputStr} = Catenate SEPARATOR=\n
8492+
... |---------------|--------------|----------|-----------|
8493+
... |${SPACE}projectNumber${SPACE}|${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}name${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|${SPACE}location${SPACE}|${SPACE}${SPACE}${SPACE}${SPACE}ic${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|
8494+
... |---------------|--------------|----------|-----------|
8495+
... |${SPACE}${SPACE}100000000001${SPACE}|${SPACE}silly-bucket${SPACE}|${SPACE}US${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|${SPACE}inherited${SPACE}|
8496+
... |---------------|--------------|----------|-----------|
8497+
${inputStr} = Set Variable If "${SQL_BACKEND}" == "postgres_tcp" ${inputStrPostgres} ${inputStrSQLite}
85028498
Should Stackql Exec Inline Equal Both Streams
85038499
... ${STACKQL_EXE}
85048500
... ${OKTA_SECRET_STR}

0 commit comments

Comments
 (0)