Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcom-tp-etl-transformation-pipelines
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
general
bcom-tp-etl-transformation-pipelines
Commits
1b1d0f08
Commit
1b1d0f08
authored
Jan 11, 2024
by
Erly Villaroel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cambios en Cleaning.py
parent
368d03ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
Cleaning.py
dags/components/Cleaning.py
+0
-3
Oracle.py
dags/components/Databases/Oracle.py
+0
-1
No files found.
dags/components/Cleaning.py
View file @
1b1d0f08
...
@@ -66,12 +66,9 @@ def clean(command: str, intern_conn):
...
@@ -66,12 +66,9 @@ def clean(command: str, intern_conn):
delete_p
=
False
delete_p
=
False
engine
=
intern_conn
.
engine
engine
=
intern_conn
.
engine
tablename
=
command
tablename
=
command
print
(
tablename
)
with
engine
.
connect
()
as
conn
:
with
engine
.
connect
()
as
conn
:
result_t
=
bool
(
intern_conn
.
check_table
(
tablename
,
conn
))
result_t
=
bool
(
intern_conn
.
check_table
(
tablename
,
conn
))
result_p
=
bool
(
intern_conn
.
check_procedure
(
tablename
,
conn
))
result_p
=
bool
(
intern_conn
.
check_procedure
(
tablename
,
conn
))
print
(
"result_t"
,
result_t
)
print
(
"result_t"
,
result_p
)
if
result_t
:
if
result_t
:
logger
.
info
(
f
"Borrando tabla {tablename}"
)
logger
.
info
(
f
"Borrando tabla {tablename}"
)
delete_t
=
delete_table
(
tablename
,
engine
)
delete_t
=
delete_table
(
tablename
,
engine
)
...
...
dags/components/Databases/Oracle.py
View file @
1b1d0f08
...
@@ -131,7 +131,6 @@ class Oracle:
...
@@ -131,7 +131,6 @@ class Oracle:
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
error
(
f
"Error obteniendo existencia de tabla. {e}"
)
logger
.
error
(
f
"Error obteniendo existencia de tabla. {e}"
)
finally
:
finally
:
print
(
"exists"
,
exists
)
return
exists
return
exists
def
verify_table
(
self
,
table_name
,
connection
)
->
bool
:
def
verify_table
(
self
,
table_name
,
connection
)
->
bool
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment