Skip to content

# Rows inserted in 'Insert into Table Select * from Table' Stmt #406

Closed Answered by jeffreyaven
vwake7 asked this question in Q&A
Discussion options

You must be logged in to vote

actually we can add this to pystackql @vwake7 by counting the stderr lines back from the executeStmt method, e.g.

stackql  >>INSERT INTO google.compute.instances(   project,   zone,   data__name,   data__machineType,   data__disks,   data__networkInterfaces ) 
stackql  >>SELECT   
stackql  >>'stackql-demo-2' as project,   
stackql  >>'australia-southeast1-a' as zone, 
stackql  >>instanceId as name, 
stackql  >>CASE instanceType 
stackql  >>WHEN 't2.micro' 
stackql  >>THEN 'https://www.googleapis.com/compute/v1/projects/stackql-demo-2/zones/australia-southeast1-a/machineTypes/e2-micro' 
stackql  >>END as machineType,
stackql  >>'[{"autoDelete":true,"boot":true,"initializeParams":{"diskSize…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vwake7
Comment options

vwake7 May 5, 2024
Author Sponsor

Answer selected by vwake7
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants