-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement hive table engine #31104
Implement hive table engine #31104
Conversation
@kssenii It's strange, we cannot reproduce the failures on local for |
About failing functional test -- did you try build with sanitizer? As I see functional tests under release build are ok including the one you mentioned. So I think you just need to check under asan build. You can also download asan build from build check of this pr (in details).
Ok, I'll take a look next week, this week is still holidays in Russia and we are not working.
👍🏻 |
src/Common/ErrorCodes.cpp
Outdated
M(650, SNAPPY_UNCOMPRESS_FAILED) \ | ||
M(651, SNAPPY_COMPRESS_FAILED) \ | ||
M(652, NO_HIVEMETASTORE) \ | ||
M(635, CANNOT_POLL) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please return correct order of error codes, it must be ascending.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/Common/LRUResourceCache.h
Outdated
template <typename T> | ||
struct TrivialLRUResourceCacheReleaseFunction | ||
{ | ||
void operator()(std::shared_ptr<T>) { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be make it noexcept
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I think the failure of 01273_arrow_dictionaries_load is related to some other bugs. It seems go wrong from exporting the data using arrow dictionary, at |
But if the test started failing in this PR stably, then the reason in changes from this pr, and even if the changes are correct, the test need to be fixed anyway. |
The bug is in
the |
@kssenii We need your help. Although we known the cause of this crash, but we have no idea how to fix it. |
Not sure if this is OK as following, when buffer is nullptr, skip it. Although it works.
|
1. interagtion test for test_hive_query failed 2. nullptr reference in arrowSchemaToCHHeader
tests/queries/0_stateless/02156_storage_merge_prewhere.reference
Outdated
Show resolved
Hide resolved
@kssenii The failed stateless test is not introduced by this PR: When arrow merged this pr: https://github.com/apache/arrow/pull/11855/files, 00900_long_parquet_load will be ok |
Not support kerberos yet? <hdfs>
<hadoop_kerberos_keytab>/path/to/keytab</hadoop_kerberos_keytab>
<hadoop_kerberos_principal>xxx</hadoop_kerberos_principal>
<hadoop_security_authentication>kerberos</hadoop_security_authentication>
<libhdfs3_conf>/path/to/hdfs-site.xml</libhdfs3_conf>
</hdfs> |
@xqliang Not supported yet, we will implemented soon, maybe you can also participate in this work. |
does not supported hive with HA of hdfs? SELECT * Code: 210. DB::Exception: Received from localhost:9000. DB::Exception: Unable to connect to HDFS: InvalidParameter: Cannot create namenode proxy, does not contain host or port. (NETWORK_ERROR) |
HDFS HA mode is supported. Can you create a new issue with detail information? |
通过clickhouse 连接 ha hdfs 的没问题,现在有问题的是 clickhouse连接 hive 报错,提示hdfs ha问题 |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Implement hive table engine to access apache hive from clickhouse. Related RFC: #29245
Detailed description / Documentation draft:
More detailed description, please refer to: docs/en/engines/table-engines/integrations/hive.md
Thanks for the fundamental work #16349 of @sundy-li