bigquery spark update

This commit is contained in:
Bobby
2021-05-03 12:07:55 +10:00
parent f9782d3fce
commit ebaa6d73c9

View File

@@ -311,10 +311,12 @@ const bigqueryIndex = async (payload, sparkContext) => {
};
}, {});
console.log(
"The following fields do not exist in Firetable and are ignored.",
unknownKeys
);
if (unknownKeys?.length > 0) {
console.log(
"The following fields do not exist in Firetable and are ignored.",
unknownKeys
);
}
return knownRecord;
}
@@ -369,7 +371,7 @@ const bigqueryIndex = async (payload, sparkContext) => {
await preprocessTable();
await preprocessSchema();
//
// only proceed with fields that have known types
const typeKnownReccord = getTypeKnownRecord(record);
switch (triggerType) {