Show / Hide Table of Contents

Class DatePartitionProjectionConfigurationProps

(deprecated) Properties for DATE partition projection configuration.

Inheritance
object
DatePartitionProjectionConfigurationProps
Implements
IDatePartitionProjectionConfigurationProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class DatePartitionProjectionConfigurationProps : IDatePartitionProjectionConfigurationProps
Syntax (vb)
Public Class DatePartitionProjectionConfigurationProps Implements IDatePartitionProjectionConfigurationProps
Remarks

Stability: Deprecated

ExampleMetadata: infused

Examples
Database myDatabase;

             new S3Table(this, "MyTable", new S3TableProps {
                 Database = myDatabase,
                 Columns = new [] { new Column {
                     Name = "data",
                     Type = Schema.STRING
                 } },
                 PartitionKeys = new [] { new Column {
                     Name = "date",
                     Type = Schema.STRING
                 } },
                 DataFormat = DataFormat.JSON,
                 PartitionProjection = new Dictionary<string, PartitionProjectionConfiguration> {
                     { "date", PartitionProjectionConfiguration.Date(new DatePartitionProjectionConfigurationProps {
                         Min = "2020-01-01",
                         Max = "2023-12-31",
                         Format = "yyyy-MM-dd",
                         // `step` bundles interval + unit (supply both or neither). Optional at day
                         // precision or coarser; required when the format is sub-day (e.g. hours).
                         Step = new DateProjectionStep { Interval = 1, IntervalUnit = DateIntervalUnit.DAYS }
                     }) }
                 }
             });

Synopsis

Constructors

DatePartitionProjectionConfigurationProps()

(deprecated) Properties for DATE partition projection configuration.

Properties

Format

(deprecated) Date format for partition values.

Max

(deprecated) End date for the partition range (inclusive).

Min

(deprecated) Start date for the partition range (inclusive).

Step

(deprecated) Interval step (interval + intervalUnit) between partition values.

Constructors

DatePartitionProjectionConfigurationProps()

(deprecated) Properties for DATE partition projection configuration.

public DatePartitionProjectionConfigurationProps()
Remarks

Stability: Deprecated

ExampleMetadata: infused

Examples
Database myDatabase;

             new S3Table(this, "MyTable", new S3TableProps {
                 Database = myDatabase,
                 Columns = new [] { new Column {
                     Name = "data",
                     Type = Schema.STRING
                 } },
                 PartitionKeys = new [] { new Column {
                     Name = "date",
                     Type = Schema.STRING
                 } },
                 DataFormat = DataFormat.JSON,
                 PartitionProjection = new Dictionary<string, PartitionProjectionConfiguration> {
                     { "date", PartitionProjectionConfiguration.Date(new DatePartitionProjectionConfigurationProps {
                         Min = "2020-01-01",
                         Max = "2023-12-31",
                         Format = "yyyy-MM-dd",
                         // `step` bundles interval + unit (supply both or neither). Optional at day
                         // precision or coarser; required when the format is sub-day (e.g. hours).
                         Step = new DateProjectionStep { Interval = 1, IntervalUnit = DateIntervalUnit.DAYS }
                     }) }
                 }
             });

Properties

Format

(deprecated) Date format for partition values.

[Obsolete]
public string Format { get; set; }
Property Value

string

Remarks

Uses Java SimpleDateFormat patterns.

Stability: Deprecated

See: https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html

Max

(deprecated) End date for the partition range (inclusive).

[Obsolete]
public string Max { get; set; }
Property Value

string

Remarks

Can be either:

    Same format constraints as min.

    Stability: Deprecated

    Min

    (deprecated) Start date for the partition range (inclusive).

    [Obsolete]
    public string Min { get; set; }
    Property Value

    string

    Remarks

    Can be either:

      Stability: Deprecated

      See: https://docs.aws.amazon.com/athena/latest/ug/partition-projection-supported-types.html#partition-projection-date-type

      Step

      (deprecated) Interval step (interval + intervalUnit) between partition values.

      [Obsolete]
      public IDateProjectionStep? Step { get; set; }
      Property Value

      IDateProjectionStep

      Remarks

      The two are supplied together, so a partial step cannot be expressed. Required when format carries sub-day precision — a field finer than a day, such as hours or AM/PM; at day or coarser precision Athena defaults the step, so it may be omitted.

      Default: - Athena's default step for the format's precision; required when format is sub-day precision

      Stability: Deprecated

      Implements

      IDatePartitionProjectionConfigurationProps
      Back to top Generated by DocFX