Stored Procedure In Snowflake | Chapter-21.1 | Snowflake Hands-on Tutorial

  Рет қаралды 58,597

Data Engineering Simplified

Data Engineering Simplified

Күн бұрын

Пікірлер: 93
@vkumaremail
@vkumaremail 2 жыл бұрын
The following keywords for the CREATE PROCEDURE command are deprecated on May 12, 2022 IMMUTABLE VOLATILE
@DataEngineering
@DataEngineering 2 жыл бұрын
Thanks for note, I see it in snowflake docs now saying. [ VOLATILE | IMMUTABLE ] -- Note: VOLATILE and IMMUTABLE are deprecated. Ref: docs.snowflake.com/en/sql-reference/sql/create-procedure.html
@MohitSharma0205
@MohitSharma0205 2 жыл бұрын
@@DataEngineering poo plotw
@chakradharreddymodulla6695
@chakradharreddymodulla6695 2 жыл бұрын
Thank you Sir, I completed snowpro certification. Your videos on topics and practice tests made 80% of my preparation
@DataEngineering
@DataEngineering 2 жыл бұрын
Wonderful and congratulation on your success.
@maheshtiriveedi5130
@maheshtiriveedi5130 2 жыл бұрын
I want to contact you..may ask your email id..
@kameswarig5630
@kameswarig5630 2 жыл бұрын
Thank you so much for your great effort sir.. We owe you for such free teaching with so much in detail knowledge.
@DataEngineering
@DataEngineering 2 жыл бұрын
It's my pleasure
@SreePotluri2024
@SreePotluri2024 2 жыл бұрын
Your connect and explanation is great! One can get well experienced in snowflake just by following your channel. Thank you!
@DataEngineering
@DataEngineering 2 жыл бұрын
Great to hear!
@sireeshap9624
@sireeshap9624 2 жыл бұрын
Thanks for sharing. Videos are very helpful to me to learn Snowflake.
@DataEngineering
@DataEngineering 2 жыл бұрын
Glad to hear that!
@motivationalvibes5699
@motivationalvibes5699 Жыл бұрын
Thanks sir awesome explanation
@DataEngineering
@DataEngineering Жыл бұрын
Thanks for liking
@shubhangidhamdhere4612
@shubhangidhamdhere4612 2 жыл бұрын
Thanks a million Sir.. We are very grateful to you for such a great effort and sharing your knowledge. Respect 🙏!!
@DataEngineering
@DataEngineering 2 жыл бұрын
Thanks and welcome
@pranjalinagarkar3176
@pranjalinagarkar3176 2 жыл бұрын
Amazing video sir. every concept is well explained with example. Thank you for sharing your knowledge.
@DataEngineering
@DataEngineering 2 жыл бұрын
You are most welcome
@babubansi9133
@babubansi9133 2 жыл бұрын
Great Work.
@DataEngineering
@DataEngineering 2 жыл бұрын
Thank you 🙏 for watching my video and your word of appreciation really means a lot to me.
@venkateshpasunuri4017
@venkateshpasunuri4017 2 жыл бұрын
Thank you so much for all your videos , every topic explained very well .
@DataEngineering
@DataEngineering 2 жыл бұрын
Thank you 🙏 for watching my video and your word of appreciation really means a lot to me. ⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡ I have already published other knowledge series and snowflake certification videos and if you are interested, you can refer them. 🌐 Snowflake Complete Guide Playlist ➥ bit.ly/3iNTVGI 🌐 SnowPro Guide ➥ bit.ly/35S7Rcb 🌐 Snowflake SQL Series Playlist ➥ bit.ly/3AH6kCq 🌐 SnowPro Question Dump (300 questions) ➥ bit.ly/2ZLQm9E
@grishrrr
@grishrrr Жыл бұрын
Thank you so much! It was excellent.
@DataEngineering
@DataEngineering Жыл бұрын
You're very welcome!
@knowledgeacquire8566
@knowledgeacquire8566 2 жыл бұрын
Thank you so much Sir!!
@DataEngineering
@DataEngineering 2 жыл бұрын
most welcome
@gauravsinghal4948
@gauravsinghal4948 2 жыл бұрын
Thanks a millions for this wonderful training for Snowflake developers. have one doubt regarding ROLE and ACCESS. in this videos-- in chapter-20- you said Role and users are to be created by security-admin role but you are using account-admin role for creating USER (lead01 & lead02) and ROLE(created by Security-admin) assigning to those user. and again you switch to Securtiy-admin to assign role to role. not having clear understanding when and on what we can use those roles.
@DataEngineering
@DataEngineering 2 жыл бұрын
- Users should be created by user-admin - Role assigment should be done by Security admin (that's why it is named as security admin) Let me re-look into the content... but your observation is right..
@Buzzingfact
@Buzzingfact 2 жыл бұрын
Thank you for creating these videos 👏
@DataEngineering
@DataEngineering 2 жыл бұрын
Glad you like them!
@Praveen_Kumar_R_CBE
@Praveen_Kumar_R_CBE 2 жыл бұрын
Amazing content, very useful as always...
@DataEngineering
@DataEngineering 2 жыл бұрын
Thank you 🙏 for watching my video and your word of appreciation really means a lot to me.
@subramanyams3742
@subramanyams3742 2 жыл бұрын
Thanks a lot for all the free videos. I am already certified however I am still learning a lot of real time content from your videos. 🙂Do you have any plans in making the videos on snowpark?.
@DataEngineering
@DataEngineering 2 жыл бұрын
You're very welcome! Will do it ..may take sometime... as need to understand the demand of audience... What specific challenge you have.. or area you wan to focus.. if you can drop note here or in my insta account .. I can design the course and publish it.
@bethtilley5648
@bethtilley5648 Жыл бұрын
Your video tutorials are great. Thanks. Is there a way to see the query that was used to create and populate the tables and views for past years?
@rajeshbhosale2008
@rajeshbhosale2008 Жыл бұрын
Thanks a lot 👍🏻
@DataEngineering
@DataEngineering Жыл бұрын
You're welcome! and liked you are dropping a note after finishing each chapter.
@nijamudhins3405
@nijamudhins3405 2 жыл бұрын
Thanks alot!😀
@DataEngineering
@DataEngineering 2 жыл бұрын
Happy to help
@investingduz8583
@investingduz8583 2 жыл бұрын
Youre amazing, thank you so much
@DataEngineering
@DataEngineering 2 жыл бұрын
You're so welcome!
@vinothkannaramsingh8224
@vinothkannaramsingh8224 6 ай бұрын
stored procedure is dead ? For ETL we can use spark or snowpark right ?
@sebastienrichez6813
@sebastienrichez6813 Жыл бұрын
Yours videos are great. Do you have any insight about stored procedure in Javascript vs stored procedure in Python ? for the cost, performance, devOps...
@DataEngineering
@DataEngineering Жыл бұрын
Not yet.. will consider it in future.. it is a very rare requirement..
@Storyteller_30
@Storyteller_30 Жыл бұрын
hi you are doing great work can you make storedprocedure in SQL Language with proper examples
@DataEngineering
@DataEngineering Жыл бұрын
will do it soon...
@kandanulupruthvi8844
@kandanulupruthvi8844 2 жыл бұрын
Thanks for the videos, your videos are really very helpful. Can you help me with creating stored procedure using java script for inserting data into dimension tables(target)
@DataEngineering
@DataEngineering 2 жыл бұрын
Will try
@sunshadow9704
@sunshadow9704 2 жыл бұрын
Great demo. One serious request. Please speak slower. Not only this will make the context easy to follow, it will boost your confidence in teaching.
@DataEngineering
@DataEngineering 2 жыл бұрын
Sorry for that and noted... will try my best to speak slow.
@Anil_Rishvik_Memories
@Anil_Rishvik_Memories 2 жыл бұрын
Nice info, how can we implement SAP hana view reporting logic in snowflake procedure, that logic has multiple steps each step is depends on previous steps and it has if and case related stuff as ell
@DataEngineering
@DataEngineering 2 жыл бұрын
For such complex logic, you can write java or java script stored procedure rather using SQL based stored procedure.
@Anil_Rishvik_Memories
@Anil_Rishvik_Memories 2 жыл бұрын
@@DataEngineering Thanks for the response and yeah i am using javascript to write procedures in snowflake for that logic but need some info how to implement as i know only the basics of stored procedures in Snowflake, can you guide me link or article which i can refer for the same
@DataEngineering
@DataEngineering 2 жыл бұрын
Hi @@Anil_Rishvik_Memories , now sure how helpful I will be as there are limited content available for javascript stored procedure and I am planning to make a playlist in future. If you can share your high level logic to my instagram account (instagram.com/learn_dataengineering/), I can review and see if I can guide you or point to some good content available out.
@Anil_Rishvik_Memories
@Anil_Rishvik_Memories 2 жыл бұрын
@@DataEngineering yes shared the same in your insta message
@muralikrishna-gi2kh
@muralikrishna-gi2kh 2 жыл бұрын
Hi ur videos are very usefull please make a video on snaplogic
@DataEngineering
@DataEngineering 2 жыл бұрын
Will try it in future..
@jiangjy1982
@jiangjy1982 2 жыл бұрын
Excellent tutorials! I find the tree view of course content very helpful. Is it shared anywhere? Thanks!
@DataEngineering
@DataEngineering 2 жыл бұрын
Not yet!
@saereddy
@saereddy Жыл бұрын
Calling too many stored procs leads to dead lock. So is there any limit for this ???
@DataEngineering
@DataEngineering Жыл бұрын
I don't think that there is any rule... have you come across any such scenario?
@manidhar.V.S
@manidhar.V.S 2 жыл бұрын
Request you to keep all queries,data that are used in vedios inside the discription box as text files.
@DataEngineering
@DataEngineering 2 жыл бұрын
Noted
@visshalgupta
@visshalgupta 2 жыл бұрын
Hi Snowflake is coming up with the new version of the snowpro core examination ? how much difference it will make ?
@DataEngineering
@DataEngineering 2 жыл бұрын
The weightage is changing but overlal the coverage is some.
@srinivasanelluri8068
@srinivasanelluri8068 2 жыл бұрын
Hello sir , thank you for the video, can we call thirdpary api call inside storedprocedure ?
@DataEngineering
@DataEngineering 2 жыл бұрын
Yes, you can and for that you have to create an external function first.. and then you can call it as function.. the function is processed per row basis.. so for example.. if you want to trasnlate the desc from language-1 to language-2 such use cases can be managed.. but just calling an API to get a single value like Java or python.. may not work.. or we need to check the documentation...
@pavankalyankonda1022
@pavankalyankonda1022 2 жыл бұрын
do we have any custom tool to convert SAP ABAP code to Snowsql?
@pmohantymohanty7
@pmohantymohanty7 5 ай бұрын
Why isn't the sql script webpage opening ?
@hankjones9043
@hankjones9043 2 жыл бұрын
Thanks for your videos. I have question when I tried to simulate the first procedure purge_inactive_customer, I had to use double-quotes instead of single-quotes around the sqlText. Do you know why? Thanks again! example "DELETE FROM CUSTOMER WHERE CUST_STATUS = 'Inactive';" instead of 'DELETE FROM CUSTOMER WHERE CUST_STATUS = 'Inactive';'
@DataEngineering
@DataEngineering 2 жыл бұрын
This worked for me.. $$ var rs = snowflake.execute( { sqlText: `DELETE FROM CUSTOMER WHERE CUST_STATUS = 'Inactive';` } ); return 'Inactive customers purged.'; $$; Where are you trying this.. snowsight or legacy webui? I tried in snowsight and it worked for me...
@SreePotluri2024
@SreePotluri2024 2 жыл бұрын
Also I was wondering if you are planning on a video focusing only on snowpark (python) ?
@DataEngineering
@DataEngineering 2 жыл бұрын
There are lot of content available on Snowpark... don't they give enough or good explaination.. if not..then I can make video around it... It needs a complete playlist as there are lot of key concept around snowpark. Feel free to share your though or drop me a note to my instagram or facebook msg. instagram.com/learn_dataengineering/ fb.me/learndataengineering
@ipsna2758
@ipsna2758 2 жыл бұрын
Hi, thnak you for your videos. But I need one help -- I am working on automating Poricedures depedncies with Javascript in SP, But I am not sure how to debug it as simple print ,ie, Cosnole.log(message) does not give any Output. I am totaly new to JS, so not sure why Its not working. and I am stuck with my code errors as I am not able to debug.
@DataEngineering
@DataEngineering 2 жыл бұрын
Thanks for your note and I am really not sure how to help you without knowing the actual problem statement. It is a challenge debugging javascript in Snowflake unless you have worked in the past. Either you can add your domain problem here, or post a direct message to my instagram account (instagram.com/learn_dataengineering/)
@shashankm2859
@shashankm2859 2 жыл бұрын
How can we print message in snowflake sql procedure?
@DataEngineering
@DataEngineering 2 жыл бұрын
There is no direct way to see... it has to be stored in a string and then return and using result_scan, the values can be captured.. this is a work around but there is no direct way to do it.
@NeumsFor9
@NeumsFor9 10 ай бұрын
Maybe they meant idempotent instead if immutable?
@DataEngineering
@DataEngineering 10 ай бұрын
Could you point which part of the video has that term.. I published it long back.. so not able to recall
@maheshpokharkar278
@maheshpokharkar278 Жыл бұрын
How to enforce Primary Key Constraint in Snowflake?
@swatisharma4409
@swatisharma4409 2 жыл бұрын
Hey there, Can we learn snowflake without having coding knowledge?
@DataEngineering
@DataEngineering 2 жыл бұрын
Thanks @Swati for your note... to some extend yes.. to really leverage the power of snowflake, SQL is must.. to some extend cloud storage integration... For analyst, programming is not must and you can even pull snowflake data into excel (and power query) and perform transformation and analysis Watch my latest video kzbin.info/www/bejne/jmXYiZ59iJWXi7M
@shreyaskulkarni2142
@shreyaskulkarni2142 2 жыл бұрын
Where is part - 2?
@DataEngineering
@DataEngineering 2 жыл бұрын
I am working on it
@JacobGeorgeJames
@JacobGeorgeJames 2 жыл бұрын
​@@DataEngineering Waiting for part-2 sir. Thank you.
@shruthiik6817
@shruthiik6817 2 жыл бұрын
Hi I am getting error while executing the following stored procedure. Can you please help me to fix the issue? create or replace procedure customers_insert_procedure(LNAME VARCHAR) returns string language javascript as $$ var sql_command = 'INSERT INTO CUSTOMER1(LNAME) VALUES(:1);' snowflake.execute ( { sqlText: sql_Command, binds: [LNAME] }); return "successfully executed."; $$; calling the procedure: create or replace task procedure_task warehouse = compute_wh schedule = '1 minute' as call customers_insert_procedure ('JACK');
@DataEngineering
@DataEngineering 2 жыл бұрын
What error are you getting.. if you could send the text or share screenshot in my insta account.. I could help you
@abhik2791
@abhik2791 2 жыл бұрын
Great video! Great content. One question is can we use nested CTE as below with in sql or javascript construct? Is this valid at all? Do we have any limitation on number of CTE we can use (CT1,CT2,CT3------) CREATE OR REPLACE PROCEDURE sp5() RETURNS string LANGUAGE javascript AS $$ var my_sql_command = `with ct1 (f1,f2) as (select f1,f2 from TEST_1.PUBLIC.TEST11) ct2 (f1,f3) as (select f1,f3 from TEST_1.PUBLIC.TEST12) ct3 (f1,f2,f3) as (select a.f1,f2,f3 from TEST_1.PUBLIC.TEST11 a left join TEST_1.PUBLIC.TEST12 b on a.f1 = b.f1) insert into TEST_1.PUBLIC.EMP1 (f1,f2,f3) select f1,f2,f3 from ct2;`; var statement1 = snowflake.createStatement( {sqlText: my_sql_command} ); var result_set1 = statement1.execute(); return "Done"; $$; call sp5();
@DataEngineering
@DataEngineering 2 жыл бұрын
Thanks Abhi ... as far as I know, having nested CET should not be an issue... SQL Scripting is new addition in stored proc space. Worth trying this use case and see how it works in snowflake. Thanks again for sharing your use case, it helps community to know about these challenges if they are trying to solve the same use case.
@guptagurumukh00
@guptagurumukh00 2 жыл бұрын
I am trying to create to Create stored proc with "java" i am getting error. can you please check. CREATE OR REPLACE PROCEDURE MYPROC(x int) RETURNS int LANGUAGE JAVA PACKAGES = ('com.snowflake:snowpark:latest') HANDLER = 'MyJavaClass.run' AS $$ import com.snowflake.snowpark_java.*; public class MyJavaClass { public Integer run(int y) { return y; } } $$;
@DataEngineering
@DataEngineering 2 жыл бұрын
Can you share the error via instagram to my insta account
@guptagurumukh00
@guptagurumukh00 2 жыл бұрын
@@DataEngineering sorry i dont use insta, btw can we write a procedure to run a sql query where we chose lang = java, why i see people use java script only.
User Defined Functions In Snowflake | Chapter-21.2 | Snowflake Hands-on Tutorial
42:22
Data Engineering Simplified
Рет қаралды 26 М.
ETL Workflow In Snowflake | Chapter-19 | Snowflake Hands-on Tutorial
1:01:33
Data Engineering Simplified
Рет қаралды 129 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Role, Grants & Role Hierarchy In Snowflake | Chapter-20 | Snowflake Hands-on Tutorial
45:52
SQL Stored Procedures | Snowflake Scripting
16:21
Mastering Snowflake
Рет қаралды 26 М.
What are views in Snowflake  | Chapter-21.3 | Snowflake Hands-on Tutorial
50:54
Data Engineering Simplified
Рет қаралды 26 М.
Zero to Snowflake in 58 minutes
58:41
Datalytyx
Рет қаралды 129 М.
Apache Spark overview (part 2 of 3) | On the surface
22:24
Lester Martin
Рет қаралды 239
#13 | Micro Partitions & Data Clustering In Snowflake  | Snowflake Hands-on Tutorial
35:50
Snowflake Stream & Change Data Capture | Chapter-17 | Snowflake Hands-on Tutorial
27:52
Data Engineering Simplified
Рет қаралды 57 М.