Skip to content

Commit 81a5d8f

Browse files
authored
Merge pull request #66 from agregory999/main
Allow for longer data in CSV and Quota tables
2 parents 6990b94 + 385e6c2 commit 81a5d8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

usage2adw_showoci_csv2adw.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ def handle_quotas(connection):
28902890
{'col': 'compartment_path ', 'csv': ' ', 'type': 'varchar2(4000)', 'pk': 'n'},
28912891
{'col': 'name ', 'csv': ' ', 'type': 'varchar2(1000)', 'pk': 'n'},
28922892
{'col': 'description ', 'csv': ' ', 'type': 'varchar2(1000)', 'pk': 'n'},
2893-
{'col': 'statements ', 'csv': ' ', 'type': 'varchar2(4000)', 'pk': 'n'},
2893+
{'col': 'statements ', 'csv': ' ', 'type': 'clob ', 'pk': 'n'},
28942894
{'col': 'time_created ', 'csv': ' ', 'type': 'date ', 'pk': 'n'},
28952895
{'col': 'extract_date ', 'csv': ' ', 'type': 'date ', 'pk': 'n'}
28962896
]
@@ -3300,6 +3300,9 @@ def handle_table(connection, inputdata, resource_id="", resource_name="", resour
33003300
num_rows = 0
33013301
process_location = "Before Load Data"
33023302

3303+
# Allow larger data sizes for CSV field
3304+
csv.field_size_limit(sys.maxsize)
3305+
33033306
with open(path_filename, 'rt') as file_in:
33043307
csv_reader = csv.DictReader(file_in)
33053308

0 commit comments

Comments
 (0)