/AWS1/CL_GLU=>BATCHCREATEPARTITION()
¶
About BatchCreatePartition¶
Creates one or more partitions in a batch operation.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_databasename
TYPE /AWS1/GLUNAMESTRING
/AWS1/GLUNAMESTRING
¶
The name of the metadata database in which the partition is to be created.
iv_tablename
TYPE /AWS1/GLUNAMESTRING
/AWS1/GLUNAMESTRING
¶
The name of the metadata table in which the partition is to be created.
it_partitioninputlist
TYPE /AWS1/CL_GLUPARTITIONINPUT=>TT_PARTITIONINPUTLIST
TT_PARTITIONINPUTLIST
¶
A list of
PartitionInput
structures that define the partitions to be created.
Optional arguments:¶
iv_catalogid
TYPE /AWS1/GLUCATALOGIDSTRING
/AWS1/GLUCATALOGIDSTRING
¶
The ID of the catalog in which the partition is to be created. Currently, this should be the Amazon Web Services account ID.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_glubtccrepartitionrsp
/AWS1/CL_GLUBTCCREPARTITIONRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_glu~batchcreatepartition(
it_partitioninputlist = VALUE /aws1/cl_glupartitioninput=>tt_partitioninputlist(
(
new /aws1/cl_glupartitioninput(
io_storagedescriptor = new /aws1/cl_glustoragedescriptor(
io_schemareference = new /aws1/cl_gluschemareference(
io_schemaid = new /aws1/cl_gluschemaid(
iv_registryname = |string|
iv_schemaarn = |string|
iv_schemaname = |string|
)
iv_schemaversionid = |string|
iv_schemaversionnumber = 123
)
io_serdeinfo = new /aws1/cl_gluserdeinfo(
it_parameters = VALUE /aws1/cl_gluparametersmap_w=>tt_parametersmap(
(
VALUE /aws1/cl_gluparametersmap_w=>ts_parametersmap_maprow(
value = new /aws1/cl_gluparametersmap_w( |string| )
key = |string|
)
)
)
iv_name = |string|
iv_serializationlibrary = |string|
)
io_skewedinfo = new /aws1/cl_gluskewedinfo(
it_skewedcolumnnames = VALUE /aws1/cl_glunamestringlist_w=>tt_namestringlist(
( new /aws1/cl_glunamestringlist_w( |string| ) )
)
it_skewedcolumnvaluelocmaps = VALUE /aws1/cl_glulocationmap_w=>tt_locationmap(
(
VALUE /aws1/cl_glulocationmap_w=>ts_locationmap_maprow(
value = new /aws1/cl_glulocationmap_w( |string| )
key = |string|
)
)
)
it_skewedcolumnvalues = VALUE /aws1/cl_glucolumnvalstrlist_w=>tt_columnvaluestringlist(
( new /aws1/cl_glucolumnvalstrlist_w( |string| ) )
)
)
it_additionallocations = VALUE /aws1/cl_glulocstringlist_w=>tt_locationstringlist(
( new /aws1/cl_glulocstringlist_w( |string| ) )
)
it_bucketcolumns = VALUE /aws1/cl_glunamestringlist_w=>tt_namestringlist(
( new /aws1/cl_glunamestringlist_w( |string| ) )
)
it_columns = VALUE /aws1/cl_glucolumn=>tt_columnlist(
(
new /aws1/cl_glucolumn(
it_parameters = VALUE /aws1/cl_gluparametersmap_w=>tt_parametersmap(
(
VALUE /aws1/cl_gluparametersmap_w=>ts_parametersmap_maprow(
value = new /aws1/cl_gluparametersmap_w( |string| )
key = |string|
)
)
)
iv_comment = |string|
iv_name = |string|
iv_type = |string|
)
)
)
it_parameters = VALUE /aws1/cl_gluparametersmap_w=>tt_parametersmap(
(
VALUE /aws1/cl_gluparametersmap_w=>ts_parametersmap_maprow(
value = new /aws1/cl_gluparametersmap_w( |string| )
key = |string|
)
)
)
it_sortcolumns = VALUE /aws1/cl_gluorder=>tt_orderlist(
(
new /aws1/cl_gluorder(
iv_column = |string|
iv_sortorder = 123
)
)
)
iv_compressed = ABAP_TRUE
iv_inputformat = |string|
iv_location = |string|
iv_numberofbuckets = 123
iv_outputformat = |string|
iv_storedassubdirectories = ABAP_TRUE
)
it_parameters = VALUE /aws1/cl_gluparametersmap_w=>tt_parametersmap(
(
VALUE /aws1/cl_gluparametersmap_w=>ts_parametersmap_maprow(
value = new /aws1/cl_gluparametersmap_w( |string| )
key = |string|
)
)
)
it_values = VALUE /aws1/cl_gluvaluestringlist_w=>tt_valuestringlist(
( new /aws1/cl_gluvaluestringlist_w( |string| ) )
)
iv_lastaccesstime = '20150101000000.0000000'
iv_lastanalyzedtime = '20150101000000.0000000'
)
)
)
iv_catalogid = |string|
iv_databasename = |string|
iv_tablename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_errors( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
LOOP AT lo_row_1->get_partitionvalues( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_valuestring = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_errordetail = lo_row_1->get_errordetail( ).
IF lo_errordetail IS NOT INITIAL.
lv_namestring = lo_errordetail->get_errorcode( ).
lv_descriptionstring = lo_errordetail->get_errormessage( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.