Skip to content

Try fix test_database_delta/test.py::test_timestamp_ntz#82274

Merged
kssenii merged 1 commit intomasterfrom
try-fix-test-database-delta-tests
Jun 21, 2025
Merged

Try fix test_database_delta/test.py::test_timestamp_ntz#82274
kssenii merged 1 commit intomasterfrom
try-fix-test-database-delta-tests

Conversation

@kssenii
Copy link
Copy Markdown
Member

@kssenii kssenii commented Jun 20, 2025

Fixes

E           Code: 86. DB::Exception: Received from 172.16.5.2:9000. DB::HTTPException. DB::HTTPException: Received error from remote server http://localhost:8080/api/2.1/unity-catalog/tables/unity.schema_with_timetstamp_ntz_0.table_with_timestamp_0. HTTP status code: 404 'Not Found', body length: 184 bytes, body: '{"error_code":"NOT_FOUND","details":[{"reason":"NOT_FOUND","metadata":{},"@type":"google.rpc.ErrorInfo"}],"stack_trace":null,"message":"Schema not found: schema_with_timetstamp_ntz_0"}': while parsing JSON: . Stack trace:
E
E           0. ./contrib/llvm-project/libcxx/include/__exception/exception.h:113: Poco::Exception::Exception(String const&, int) @ 0x000000003befe991
E           1. ./ci/tmp/build/./src/Common/Exception.cpp:115: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000001eba8fd7
E           2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000c8703eb
E           3. ./src/Common/Exception.h:137: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x000000001f37d93e
E           4. ./src/IO/HTTPCommon.h:33: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x000000001f37dcd2
E           5. ./ci/tmp/build/./src/IO/HTTPCommon.cpp:93: DB::assertResponseIsOk(String const&, Poco::Net::HTTPResponse&, std::basic_istream<char, std::char_traits<char>>&, bool) @ 0x000000001f37d60b
E           6. ./ci/tmp/build/./src/IO/ReadWriteBufferFromHTTP.cpp:279: DB::ReadWriteBufferFromHTTP::callImpl(Poco::Net::HTTPResponse&, String const&, std::optional<DB::ReadWriteBufferFromHTTP::HTTPRange> const&, bool) const @ 0x0000000024634673
E           7. ./ci/tmp/build/./src/IO/ReadWriteBufferFromHTTP.cpp:287: DB::ReadWriteBufferFromHTTP::callWithRedirects(Poco::Net::HTTPResponse&, String const&, std::optional<DB::ReadWriteBufferFromHTTP::HTTPRange> const&) @ 0x0000000024634bb9
E           8. ./ci/tmp/build/./src/IO/ReadWriteBufferFromHTTP.cpp:410: DB::ReadWriteBufferFromHTTP::initialize() @ 0x0000000024635c5b
E           9. ./ci/tmp/build/./src/IO/ReadWriteBufferFromHTTP.cpp:474: void std::__function::__policy_invoker<void ()>::__call_impl[abi:ne190107]<std::__function::__default_alloc_func<DB::ReadWriteBufferFromHTTP::nextImpl()::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000002463c3f8
E           10. ./contrib/llvm-project/libcxx/include/__functional/function.h:716: ? @ 0x000000002463037b
E           11. ./ci/tmp/build/./src/IO/ReadWriteBufferFromHTTP.cpp:467: DB::ReadWriteBufferFromHTTP::nextImpl() @ 0x0000000024638323
E           12. DB::ReadBuffer::next() @ 0x000000000cac21ab
E           13. ./ci/tmp/build/./src/IO/ReadWriteBufferFromHTTP.cpp:256: DB::ReadWriteBufferFromHTTP::ReadWriteBufferFromHTTP(DB::HTTPConnectionGroupType const&, Poco::URI const&, String const&, DB::ProxyConfiguration, DB::ReadSettings, DB::ConnectionTimeouts, Poco::Net::HTTPBasicCredentials const&, DB::RemoteHostFilter const*, unsigned long, unsigned long, bool, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, bool, bool, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>>, bool, std::optional<DB::ReadWriteBufferFromHTTP::HTTPFileInfo>) @ 0x00000000246338e4
E           14. ./ci/tmp/build/./src/IO/ReadWriteBufferFromHTTP.cpp:818: DB::BuilderRWBufferFromHTTP::create(Poco::Net::HTTPBasicCredentials const&) @ 0x000000002463b830
E           15. ./ci/tmp/build/./src/Databases/DataLake/HTTPBasedCatalogUtils.cpp:38: DataLake::createReadBuffer(String const&, std::shared_ptr<DB::Context const>, Poco::Net::HTTPBasicCredentials const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>) @ 0x000000002bd0176e
E           16. ./ci/tmp/build/./src/Databases/DataLake/HTTPBasedCatalogUtils.cpp:50: DataLake::makeHTTPRequestAndReadJSON(String const&, std::shared_ptr<DB::Context const>, Poco::Net::HTTPBasicCredentials const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>) @ 0x000000002bd01f15
E           17. ./ci/tmp/build/./src/Databases/DataLake/UnityCatalog.cpp:55: DataLake::UnityCatalog::getJSONRequest(String const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&) const @ 0x000000002bceedce
E           18. ./ci/tmp/build/./src/Databases/DataLake/UnityCatalog.cpp:146: DataLake::UnityCatalog::tryGetTableMetadata(String const&, String const&, DataLake::TableMetadata&) const @ 0x000000002bcf58da
E           19. ./ci/tmp/build/./src/Databases/DataLake/DatabaseDataLake.cpp:324: DB::DatabaseDataLake::tryGetTableImpl(String const&, std::shared_ptr<DB::Context const>, bool, bool) const @ 0x000000002bbb6c89
E           20. ./ci/tmp/build/./src/Databases/DataLake/DatabaseDataLake.cpp:310: DB::DatabaseDataLake::tryGetTable(String const&, std::shared_ptr<DB::Context const>) const @ 0x000000002bbb6562
E           21. ./ci/tmp/build/./src/Interpreters/DatabaseCatalog.cpp:458: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr<DB::Context const>, std::optional<DB::Exception>*) const @ 0x000000002db5130b
E           22. ./ci/tmp/build/./src/Interpreters/DatabaseCatalog.cpp:1023: DB::DatabaseCatalog::tryGetTable(DB::StorageID const&, std::shared_ptr<DB::Context const>) const @ 0x000000002db5f254
E           23. ./ci/tmp/build/./src/Analyzer/Resolve/IdentifierResolver.cpp:177: DB::IdentifierResolver::tryResolveTableIdentifier(DB::Identifier const&, std::shared_ptr<DB::Context const> const&) @ 0x000000002c93bddd
E           24. ./ci/tmp/build/./src/Analyzer/Resolve/IdentifierResolver.cpp:204: DB::IdentifierResolver::tryResolveTableIdentifierFromDatabaseCatalog(DB::Identifier const&, std::shared_ptr<DB::Context const> const&) @ 0x000000002c93d095
E           25. ./ci/tmp/build/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1571: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveContext) @ 0x000000002c1225ad
E           26. ./ci/tmp/build/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4466: DB::QueryAnalyzer::initializeQueryJoinTreeNode(std::shared_ptr<DB::IQueryTreeNode>&, DB::IdentifierResolveScope&) @ 0x000000002c158030
E           27. ./ci/tmp/build/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5753: DB::QueryAnalyzer::resolveQuery(std::shared_ptr<DB::IQueryTreeNode> const&, DB::IdentifierResolveScope&) @ 0x000000002c0f677e
E           28. ./ci/tmp/build/./src/Analyzer/Resolve/QueryAnalyzer.cpp:181: DB::QueryAnalyzer::resolve(std::shared_ptr<DB::IQueryTreeNode>&, std::shared_ptr<DB::IQueryTreeNode> const&, std::shared_ptr<DB::Context const>) @ 0x000000002c0f4659
E           29. ./ci/tmp/build/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:18: DB::QueryAnalysisPass::run(std::shared_ptr<DB::IQueryTreeNode>&, std::shared_ptr<DB::Context const>) @ 0x000000002c0f2eb8
E           30. ./ci/tmp/build/./src/Analyzer/QueryTreePassManager.cpp:187: DB::QueryTreePassManager::run(std::shared_ptr<DB::IQueryTreeNode>) @ 0x000000002c1cbfac
E           31. ./ci/tmp/build/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:165: DB::buildQueryTreeAndRunPasses(std::shared_ptr<DB::IAST> const&, DB::SelectQueryOptions const&, std::shared_ptr<DB::Context const> const&, std::shared_ptr<DB::IStorage> const&) @ 0x000000002deba5c9
E           . (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER)
E           (query: SELECT * FROM ntz_schema.`schema_with_timetstamp_ntz_0.table_with_timestamp_0`)

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

execute_spark_query(
node1, f"CREATE SCHEMA {schema_name}", ignore_exit_code=True
)
execute_spark_query(node1, f"CREATE SCHEMA {schema_name}", ignore_exit_code=True)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few extra changes - because I applied python black formatting to this file

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh Bot commented Jun 20, 2025

Workflow [PR], commit [fd37155]

Summary:

job_name test_name status info comment
Integration tests (asan, flaky check) failure
test_database_delta/test.py::test_multiple_schemes_tables[1-3] FAIL
test_database_delta/test.py::test_complex_table_schema[0-3-3] FAIL
test_database_delta/test.py::test_timestamp_ntz[1-2-3] FAIL
test_database_delta/test.py::test_timestamp_ntz[0-3-3] FAIL
test_database_delta/test.py::test_multiple_schemes_tables[3-3] FAIL
test_database_delta/test.py::test_timestamp_ntz[1-3-3] FAIL
test_database_delta/test.py::test_complex_table_schema[1-2-3] FAIL
test_database_delta/test.py::test_complex_table_schema[1-1-3] FAIL
test_database_delta/test.py::test_complex_table_schema[0-1-3] FAIL
test_database_delta/test.py::test_timestamp_ntz[0-2-3] FAIL

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jun 20, 2025
@kssenii
Copy link
Copy Markdown
Member Author

kssenii commented Jun 21, 2025

Integration tests (asan, flaky check)

test_database_deltanever worked in repeatable run of flaky check as tests are not adjusted.

@kssenii kssenii added this pull request to the merge queue Jun 21, 2025
Merged via the queue into master with commit 40e8133 Jun 21, 2025
119 of 122 checks passed
@kssenii kssenii deleted the try-fix-test-database-delta-tests branch June 21, 2025 14:33
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants