jp0317 commented on code in PR #8898:
URL: https://github.com/apache/hudi/pull/8898#discussion_r1237208394
##########
hudi-gcp/src/main/java/org/apache/hudi/gcp/bigquery/HoodieBigQuerySyncClient.java:
##########
@@ -78,6 +84,44 @@ private void createBigQueryConnection() {
}
}
+ public void createTableUsingBqManifestFile(String tableName, String
bqManifestFileUri, String sourceUriPrefix) {
+ try {
+ String withClauses = "";
+ String extraOptions = "";
+ if (!StringUtils.isNullOrEmpty(sourceUriPrefix)) {
+ withClauses = "WITH PARTITION COLUMNS";
+ extraOptions = String.format("hive_partition_uri_prefix=\"%s\",",
sourceUriPrefix);
+ }
+ String query =
+ String.format(
Review Comment:
Yes, covered in TestManifestFileWriter. Thanks for your review!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]