# Column

A column of a table.

Used as argument in: [Schema.struct](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.Schema.html#struct)

- Source: [`aws-glue/lib/schema.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-glue/lib/schema.ts#L7)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';

declare const type: glue.Type;
const column: glue.Column = {
  name: 'name',
  type: type,

  // the properties below are optional
  comment: 'comment',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

# type: glue.Type

column = glue.Column(
    name="name",
    type=type,

    # the properties below are optional
    comment="comment"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

Type type;

Column column = Column.builder()
        .name("name")
        .type(type)

        // the properties below are optional
        .comment("comment")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

Type type;

var column = new Column {
    Name = "name",
    Type = type,

    // the properties below are optional
    Comment = "comment"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var type Type

column := &Column{
	Name: jsii.String("name"),
	Type: type,

	// the properties below are optional
	Comment: jsii.String("comment"),
}
```

## Properties

- `comment`: string = none — Coment describing the column.

- `name`: string (required) — Name of the column.

- `type`: [Type](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.Type.html) (required) — Type of the column.
