You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "LXin96 (via GitHub)" <gi...@apache.org> on 2023/12/11 14:58:22 UTC
[PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
LXin96 opened a new pull request, #10300:
URL: https://github.com/apache/hudi/pull/10300
### Change Logs
when using wrong table.type in hudi catalog, then the VALUE_MAPPING.get() will return null and throw npe, as detail in jira
maybe we need to tell user the wrong key
### Impact
_Describe any public API or user-facing feature change or any performance impact._
### Risk level (write none, low medium or high below)
_If medium or high, explain what verification was done to mitigate the risks._
### Documentation Update
_Describe any necessary documentation update if there is any new feature, config, or user-facing change_
- _The config description must be updated if new configs are added or the default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1850346023
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c04e066828a68250ace69836ad7d57aed219360f Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1856199927
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490)
* 8c5fde7f2a38012d2e3f9deac16e9403f6d77f66 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1430879928
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieHiveCatalog.java:
##########
@@ -477,6 +478,8 @@ public void createTable(ObjectPath tablePath, CatalogBaseTable table, boolean ig
if (!ignoreIfExists) {
throw new TableAlreadyExistException(getName(), tablePath, e);
}
+ } catch (HoodieValidationException e) {
+ throw e;
} catch (Exception e) {
throw new HoodieCatalogException(
Review Comment:
Shouldn't any exception been caught by the `Exception` ?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1864775484
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
}, {
"hash" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559",
"triggerID" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"triggerType" : "PUSH"
}, {
"hash" : "1dd19c2d458b4ba74806591635d20c9a7cf640b2",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21615",
"triggerID" : "1dd19c2d458b4ba74806591635d20c9a7cf640b2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9194aa91d029ea3f4c701390bae75bf625b782c1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559)
* 1dd19c2d458b4ba74806591635d20c9a7cf640b2 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21615)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1854359206
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* aa7615c26f49337f942c7f2071b39f89cbd20eb2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442)
* 0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1850742286
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* aa7615c26f49337f942c7f2071b39f89cbd20eb2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1859486382
There are still test failures: https://dev.azure.com/apache-hudi-ci-org/apache-hudi-ci/_build/results?buildId=21528&view=logs&j=600e7de6-e133-5e69-e615-50ee129b3c08&t=bbbd7bcc-ae73-56b8-887a-cd2d6deaafc7&l=28695
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1855202914
Can you check the test failures: https://dev.azure.com/apache-hudi-ci-org/apache-hudi-ci/_build/results?buildId=21490&view=logs&j=600e7de6-e133-5e69-e615-50ee129b3c08&t=bbbd7bcc-ae73-56b8-887a-cd2d6deaafc7
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1859513050
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
}, {
"hash" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528)
* 9194aa91d029ea3f4c701390bae75bf625b782c1 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1426162199
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/catalog/TestHoodieHiveCatalog.java:
##########
@@ -270,6 +271,20 @@ public void testCreateNonHoodieTable() throws TableAlreadyExistException, Databa
}
}
+ @Test
+ public void testCreateHoodieTableWithWrongTableType() throws TableAlreadyExistException, DatabaseNotExistException {
+ HashMap<String,String> properties = new HashMap<>();
+ properties.put(FactoryUtil.CONNECTOR.key(), "hudi-fake");
+ properties.put("table.type","wrong type");
+ CatalogTable table =
+ new CatalogTableImpl(schema, properties, "hudi table");
+ try {
+ hoodieCatalog.createTable(tablePath, table, false);
+ } catch (HoodieValidationException e) {
+ assertEquals("table.type's value is invalid", e.getMessage());
Review Comment:
This patch fixes the hoodie catalog instead of hoodie hive catalog right?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1856187113
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490)
* 8c5fde7f2a38012d2e3f9deac16e9403f6d77f66 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1423326760
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/TableOptionProperties.java:
##########
@@ -189,7 +190,16 @@ public static Map<String, String> translateFlinkTableProperties2Spark(
return properties.entrySet().stream()
.filter(e -> KEY_MAPPING.containsKey(e.getKey()) && !catalogTable.getOptions().containsKey(KEY_MAPPING.get(e.getKey())))
.collect(Collectors.toMap(e -> KEY_MAPPING.get(e.getKey()),
- e -> e.getKey().equalsIgnoreCase(FlinkOptions.TABLE_TYPE.key()) ? VALUE_MAPPING.get(e.getValue()) : e.getValue()));
+ e -> {
+ if (e.getKey().equalsIgnoreCase(FlinkOptions.TABLE_TYPE.key())) {
+ String sparkTableType = VALUE_MAPPING.get(e.getValue());
+ if (sparkTableType == null) {
+ throw new HoodieValidationException(String.format("%s's value is invalid", e.getKey()));
+ }
Review Comment:
Nice catch, can you write a UT in `TestHoodieCatalog` ?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "LXin96 (via GitHub)" <gi...@apache.org>.
LXin96 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1426212413
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/catalog/TestHoodieHiveCatalog.java:
##########
@@ -270,6 +271,20 @@ public void testCreateNonHoodieTable() throws TableAlreadyExistException, Databa
}
}
+ @Test
+ public void testCreateHoodieTableWithWrongTableType() throws TableAlreadyExistException, DatabaseNotExistException {
+ HashMap<String,String> properties = new HashMap<>();
+ properties.put(FactoryUtil.CONNECTOR.key(), "hudi-fake");
+ properties.put("table.type","wrong type");
+ CatalogTable table =
+ new CatalogTableImpl(schema, properties, "hudi table");
+ try {
+ hoodieCatalog.createTable(tablePath, table, false);
+ } catch (HoodieValidationException e) {
+ assertEquals("table.type's value is invalid", e.getMessage());
Review Comment:
this patch fix the hoodie hive catalog, when using hudi hive catalog ,using create if not exists table , the code will go to org.apache.hudi.table.catalog.HoodieHiveCatalog#createTable | org.apache.hudi.table.catalog.HoodieHiveCatalog#instantiateHiveTable| org.apache.hudi.table.catalog.TableOptionProperties#translateFlinkTableProperties2Spark
and in this method if the table.type is wrong it will throw npe
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1427494729
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/catalog/TestHoodieHiveCatalog.java:
##########
@@ -270,6 +271,20 @@ public void testCreateNonHoodieTable() throws TableAlreadyExistException, Databa
}
}
+ @Test
+ public void testCreateHoodieTableWithWrongTableType() throws TableAlreadyExistException, DatabaseNotExistException {
+ HashMap<String,String> properties = new HashMap<>();
+ properties.put(FactoryUtil.CONNECTOR.key(), "hudi-fake");
+ properties.put("table.type","wrong type");
+ CatalogTable table =
+ new CatalogTableImpl(schema, properties, "hudi table");
+ try {
+ hoodieCatalog.createTable(tablePath, table, false);
+ } catch (HoodieValidationException e) {
+ assertEquals("table.type's value is invalid", e.getMessage());
Review Comment:
Can we use assertThrows instead?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "LXin96 (via GitHub)" <gi...@apache.org>.
LXin96 commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1854998312
@danny0405 hello, i have added a ut in TestHoodieHiveCatalog,as the npe appears in translateFlinkTableProperties2Spark
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1854589330
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "LXin96 (via GitHub)" <gi...@apache.org>.
LXin96 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1428037560
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/catalog/TestHoodieHiveCatalog.java:
##########
@@ -270,6 +271,20 @@ public void testCreateNonHoodieTable() throws TableAlreadyExistException, Databa
}
}
+ @Test
+ public void testCreateHoodieTableWithWrongTableType() throws TableAlreadyExistException, DatabaseNotExistException {
+ HashMap<String,String> properties = new HashMap<>();
+ properties.put(FactoryUtil.CONNECTOR.key(), "hudi-fake");
+ properties.put("table.type","wrong type");
+ CatalogTable table =
+ new CatalogTableImpl(schema, properties, "hudi table");
+ try {
+ hoodieCatalog.createTable(tablePath, table, false);
+ } catch (HoodieValidationException e) {
+ assertEquals("table.type's value is invalid", e.getMessage());
Review Comment:
no problem
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1859518369
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
}, {
"hash" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559",
"triggerID" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528)
* 9194aa91d029ea3f4c701390bae75bf625b782c1 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1859720455
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
}, {
"hash" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559",
"triggerID" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9194aa91d029ea3f4c701390bae75bf625b782c1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1850460257
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c04e066828a68250ace69836ad7d57aed219360f Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441)
* aa7615c26f49337f942c7f2071b39f89cbd20eb2 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1432270997
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieHiveCatalog.java:
##########
@@ -477,6 +478,8 @@ public void createTable(ObjectPath tablePath, CatalogBaseTable table, boolean ig
if (!ignoreIfExists) {
throw new TableAlreadyExistException(getName(), tablePath, e);
}
+ } catch (HoodieValidationException e) {
+ throw e;
} catch (Exception e) {
throw new HoodieCatalogException(
Review Comment:
> maybe i need to fix ut to assert throw a HoodieCatalogException
You should.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1857375701
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 8c5fde7f2a38012d2e3f9deac16e9403f6d77f66 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516)
* f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1856390235
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 8c5fde7f2a38012d2e3f9deac16e9403f6d77f66 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1857420818
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 8c5fde7f2a38012d2e3f9deac16e9403f6d77f66 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516)
* f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1857493726
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1864762967
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
}, {
"hash" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559",
"triggerID" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"triggerType" : "PUSH"
}, {
"hash" : "1dd19c2d458b4ba74806591635d20c9a7cf640b2",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "1dd19c2d458b4ba74806591635d20c9a7cf640b2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9194aa91d029ea3f4c701390bae75bf625b782c1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559)
* 1dd19c2d458b4ba74806591635d20c9a7cf640b2 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1850328875
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c04e066828a68250ace69836ad7d57aed219360f UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1850443744
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c04e066828a68250ace69836ad7d57aed219360f Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441)
* aa7615c26f49337f942c7f2071b39f89cbd20eb2 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1854433358
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* aa7615c26f49337f942c7f2071b39f89cbd20eb2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442)
* 0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "LXin96 (via GitHub)" <gi...@apache.org>.
LXin96 commented on code in PR #10300:
URL: https://github.com/apache/hudi/pull/10300#discussion_r1431122919
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieHiveCatalog.java:
##########
@@ -477,6 +478,8 @@ public void createTable(ObjectPath tablePath, CatalogBaseTable table, boolean ig
if (!ignoreIfExists) {
throw new TableAlreadyExistException(getName(), tablePath, e);
}
+ } catch (HoodieValidationException e) {
+ throw e;
} catch (Exception e) {
throw new HoodieCatalogException(
Review Comment:
@danny0405 yes, but I throws a HoodieValidationException, maybe i need to fix ut to assert throw a HoodieCatalogException
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 merged PR #10300:
URL: https://github.com/apache/hudi/pull/10300
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7213] When using wrong tabe.type value in hudi catalog happends npe [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10300:
URL: https://github.com/apache/hudi/pull/10300#issuecomment-1865066205
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c04e066828a68250ace69836ad7d57aed219360f",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21441",
"triggerID" : "c04e066828a68250ace69836ad7d57aed219360f",
"triggerType" : "PUSH"
}, {
"hash" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21442",
"triggerID" : "aa7615c26f49337f942c7f2071b39f89cbd20eb2",
"triggerType" : "PUSH"
}, {
"hash" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21490",
"triggerID" : "0c60dcaf8fe9f1be0bdf0ed5795ee4047cc7efe3",
"triggerType" : "PUSH"
}, {
"hash" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21516",
"triggerID" : "8c5fde7f2a38012d2e3f9deac16e9403f6d77f66",
"triggerType" : "PUSH"
}, {
"hash" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21528",
"triggerID" : "f7b85354a801289e20e1c8ac2b803c2ee9d5ec6c",
"triggerType" : "PUSH"
}, {
"hash" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21559",
"triggerID" : "9194aa91d029ea3f4c701390bae75bf625b782c1",
"triggerType" : "PUSH"
}, {
"hash" : "1dd19c2d458b4ba74806591635d20c9a7cf640b2",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21615",
"triggerID" : "1dd19c2d458b4ba74806591635d20c9a7cf640b2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1dd19c2d458b4ba74806591635d20c9a7cf640b2 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21615)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org