Skip to content

Update Partition

glue_update_partition R Documentation

Updates a partition

Description

Updates a partition.

Usage

glue_update_partition(CatalogId, DatabaseName, TableName,
  PartitionValueList, PartitionInput)

Arguments

CatalogId

The ID of the Data Catalog where the partition to be updated resides. If none is provided, the Amazon Web Services account ID is used by default.

DatabaseName

[required] The name of the catalog database in which the table in question resides.

TableName

[required] The name of the table in which the partition to be updated is located.

PartitionValueList

[required] List of partition key values that define the partition to update.

PartitionInput

[required] The new partition object to update the partition to.

The Values property can't be changed. If you want to change the partition key values for a partition, delete and recreate the partition.

Value

An empty list.

Request syntax

svc$update_partition(
  CatalogId = "string",
  DatabaseName = "string",
  TableName = "string",
  PartitionValueList = list(
    "string"
  ),
  PartitionInput = list(
    Values = list(
      "string"
    ),
    LastAccessTime = as.POSIXct(
      "2015-01-01"
    ),
    StorageDescriptor = list(
      Columns = list(
        list(
          Name = "string",
          Type = "string",
          Comment = "string",
          Parameters = list(
            "string"
          )
        )
      ),
      Location = "string",
      AdditionalLocations = list(
        "string"
      ),
      InputFormat = "string",
      OutputFormat = "string",
      Compressed = TRUE|FALSE,
      NumberOfBuckets = 123,
      SerdeInfo = list(
        Name = "string",
        SerializationLibrary = "string",
        Parameters = list(
          "string"
        )
      ),
      BucketColumns = list(
        "string"
      ),
      SortColumns = list(
        list(
          Column = "string",
          SortOrder = 123
        )
      ),
      Parameters = list(
        "string"
      ),
      SkewedInfo = list(
        SkewedColumnNames = list(
          "string"
        ),
        SkewedColumnValues = list(
          "string"
        ),
        SkewedColumnValueLocationMaps = list(
          "string"
        )
      ),
      StoredAsSubDirectories = TRUE|FALSE,
      SchemaReference = list(
        SchemaId = list(
          SchemaArn = "string",
          SchemaName = "string",
          RegistryName = "string"
        ),
        SchemaVersionId = "string",
        SchemaVersionNumber = 123
      )
    ),
    Parameters = list(
      "string"
    ),
    LastAnalyzedTime = as.POSIXct(
      "2015-01-01"
    )
  )
)