Skip to content

Commit f8e4d1d

Browse files
donatelloharshavardhana
authored andcommitted
Update manifest file format for batch catalog (#355)
1 parent 134f091 commit f8e4d1d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

batch-job.go

+11-5
Original file line numberDiff line numberDiff line change
@@ -444,14 +444,20 @@ type CatalogDataFile struct {
444444
// CatalogManifestVersion represents the version of a catalog manifest.
445445
type CatalogManifestVersion string
446446

447+
// Valid values for CatalogManifestVersion.
447448
const (
448-
CatalogManifestVersionV1 CatalogManifestVersion = "v1"
449+
// We use AWS S3's manifest file version here as we are following the same
450+
// format at least initially.
451+
CatalogManifestVersion1 CatalogManifestVersion = "2016-11-30"
449452
)
450453

451454
// CatalogManifest represents the manifest of a catalog job's result.
452455
type CatalogManifest struct {
453-
Version CatalogManifestVersion `json:"version"`
454-
JobID string `json:"jobID"`
455-
StartTimestamp string `json:"startTimestamp"`
456-
Files []CatalogDataFile `json:"files"`
456+
SourceBucket string `json:"sourceBucket"`
457+
DestinationBucket string `json:"destinationBucket"`
458+
Version CatalogManifestVersion `json:"version"`
459+
CreationTimestamp string `json:"creationTimestamp"`
460+
FileFormat string `json:"fileFormat"`
461+
FileSchema string `json:"fileSchema"`
462+
Files []CatalogDataFile `json:"files"`
457463
}

0 commit comments

Comments
 (0)