Skip to content

Commit a4a1a77

Browse files
authored
Merge pull request #221 from gmanolache/fix/parquet
Fixed an Parquet check and consistency
2 parents bc388b2 + bd830da commit a4a1a77

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,10 @@ function handler(event, context) {
840840

841841
manifestContents.entries.push({
842842
url: u,
843-
mandatory: true
843+
mandatory: true,
844+
meta: {
845+
content_length: s3Info.size
846+
}
844847
});
845848
}
846849

@@ -1170,7 +1173,7 @@ function handler(event, context) {
11701173
} else {
11711174
copyOptions = copyOptions + ' \'auto\' \n';
11721175
}
1173-
} else if (config.dataFormat.S === 'Parquet' || config.dataFormat.S === 'ORC') {
1176+
} else if (config.dataFormat.S === 'PARQUET' || config.dataFormat.S === 'ORC') {
11741177
copyOptions = copyOptions + ' format as ' + config.dataFormat.S;
11751178
} else {
11761179
callback(null, {

setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ q_truncateTable = function (callback) {
210210
};
211211

212212
q_df = function (callback) {
213-
rl.question('Enter the Data Format (CSV, JSON, AVRO, Parquet, and ORC) > ', function (answer) {
214-
common.validateArrayContains(['CSV', 'JSON', 'AVRO', 'Parquet', 'ORC'], answer.toUpperCase(), rl);
213+
rl.question('Enter the Data Format (CSV, JSON, AVRO, PARQUET, and ORC) > ', function (answer) {
214+
common.validateArrayContains(['CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC'], answer.toUpperCase(), rl);
215215
dynamoConfig.Item.dataFormat = {
216216
S: answer.toUpperCase()
217217
};

0 commit comments

Comments
 (0)