hewerthomn commented on issue #25851:
URL: https://github.com/apache/airflow/issues/25851#issuecomment-1224128510

   @potiuk I builded the package and installed in my container with airflow, it 
worked!
   
   
![image](https://user-images.githubusercontent.com/226773/186178836-9edc0bc9-109f-450c-a580-3ccd83db50d3.png)
   
   ```
   [2022-08-23, 09:59:17 -04] {oracle.py:66} INFO - Executing: DECLARE
       v_sql LONG;
   BEGIN
       v_sql := '
   create table usr_bi_cgj.dim_tarefa
   (
       id_tarefa   NUMBER(22) not null primary key,
       ds_tarefa   VARCHAR2(4000) not NULL
   );
   ';
       EXECUTE IMMEDIATE v_sql;
       COMMIT;
       EXCEPTION
           WHEN OTHERS
           THEN EXECUTE IMMEDIATE 'TRUNCATE TABLE usr_bi_cgj.dim_tarefa';
       COMMIT;
   END;
   [2022-08-23, 09:59:17 -04] {base.py:68} INFO - Using connection ID 'bitjro' 
for task execution.
   [2022-08-23, 09:59:18 -04] {sql.py:313} INFO - Running statement: DECLARE
       v_sql LONG;
   BEGIN
       v_sql := '
   create table usr_bi_cgj.dim_tarefa
   (
       id_tarefa   NUMBER(22) not null primary key,
       ds_tarefa   VARCHAR2(4000) not NULL
   );
   ';
       EXECUTE IMMEDIATE v_sql;
       COMMIT;
       EXCEPTION
           WHEN OTHERS
           THEN EXECUTE IMMEDIATE 'TRUNCATE TABLE usr_bi_cgj.dim_tarefa';
       COMMIT;
   END;, parameters: None
   [2022-08-23, 09:59:18 -04] {sql.py:322} INFO - Rows affected: 0
   [2022-08-23, 09:59:18 -04] {taskinstance.py:1420} INFO - Marking task as 
SUCCESS. dag_id=caixa_tarefa_pje, task_id=cria_temp_dim_tarefa, 
execution_date=20220822T090000, start_date=20220823T135917, 
end_date=20220823T135918
   [2022-08-23, 09:59:18 -04] {local_task_job.py:156} INFO - Task exited with 
return code 0
   ```
   :smile: 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to