Comments (3)
reproduced it here - https://fiddle.clickhouse.com/ad3c2e1b-0d7e-4ebc-899d-ba422a26c082
cc: @avinzhang
from clickhouse.
Supplementary error information:
2024.05.09 16:03:15.285177 [ 107900 ] {fcf1e2b1-fe66-423d-a301-69e18fe5d985} DynamicQueryHandler: Code: 10. DB::Exception: Not found column in block. There are only columns: symbol, ask, bid, ctm: while pushing to view meta_trade_20.kline_m1_view (e3587bad-9e45-45cd-b5ce-4e7edb25feff). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c6d5d7b in /usr/bin/clickhouse
- DB::Exception::Exception<String const&, String>(int, FormatStringHelperImpl<std::type_identity<String const&>::type, std::type_identity::type>, String const&, String&&) @ 0x0000000007b70607 in /usr/bin/clickhouse
- DB::Block::getByName(String const&, bool) const @ 0x000000001035504e in /usr/bin/clickhouse
- DB::StorageWindowView::writeIntoWindowView(DB::StorageWindowView&, DB::Block const&, std::shared_ptr<DB::Context const>) @ 0x00000000124bfe3a in /usr/bin/clickhouse
- DB::PushingToWindowViewSink::consume(DB::Chunk) @ 0x0000000012a0c184 in /usr/bin/clickhouse
- DB::SinkToStorage::onConsume(DB::Chunk) @ 0x0000000012a34242 in /usr/bin/clickhouse
- void std::__function::__policy_invoker<void ()>::__call_impl<std::__function::__default_alloc_func<DB::ExceptionKeepingTransform::work()::$_1, void ()>>(std::__function::__policy_storage const*) @ 0x000000001296a0cb in /usr/bin/clickhouse
- DB::runStep(std::function<void ()>, DB::ThreadStatus*, std::atomic*) @ 0x0000000012969ddc in /usr/bin/clickhouse
- DB::ExceptionKeepingTransform::work() @ 0x00000000129694b3 in /usr/bin/clickhouse
- DB::ExecutionThreadContext::executeTask() @ 0x00000000126ebd7a in /usr/bin/clickhouse
- DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x00000000126e27b0 in /usr/bin/clickhouse
- DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000126e19c0 in /usr/bin/clickhouse
- DB::CompletedPipelineExecutor::execute() @ 0x00000000126e01b2 in /usr/bin/clickhouse
- DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptrDB::Context, std::function<void (DB::QueryResultDetails const&)>, DB::QueryFlags, std::optionalDB::FormatSettings const&, std::function<void (DB::IOutputFormat&)>) @ 0x000000001172a55b in /usr/bin/clickhouse
- DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optionalDB::CurrentThread::QueryScope&) @ 0x0000000012616f8d in /usr/bin/clickhouse
- DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001261bdb6 in /usr/bin/clickhouse
- DB::HTTPServerConnection::run() @ 0x0000000012696c12 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x00000000150f4e52 in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x00000000150f5c51 in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x00000000151ece67 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000151eb45c in /usr/bin/clickhouse
- ? @ 0x00007ff021694ac3 in ?
- ? @ 0x00007ff021726850 in ?
(version 23.12.2.59 (official build))
from clickhouse.
set allow_experimental_window_view = 1;
set allow_experimental_analyzer = 0;
-- default.tb_tick definition Source data table
CREATE OR REPLACE TABLE default.tb_tick
(
symbol String,
ask Decimal(20,10),
bid Decimal(20,10),
ctm DateTime
)
ENGINE = MergeTree
ORDER BY (symbol,ctm);
-- default.kline_test definition Target data table
CREATE OR REPLACE TABLE default.kline_test
(
symbol String,
open_price Decimal(20,10) DEFAULT 0.,
high_price Decimal(20,10) DEFAULT 0.,
low_price Decimal(20,10) DEFAULT 0.,
close_price Decimal(20,10) DEFAULT 0.,
trade_time DateTime
)
ENGINE = AggregatingMergeTree
ORDER BY (symbol,trade_time)
SETTINGS index_granularity = 8192;
-- default.kline_m1_view View Definition
CREATE WINDOW VIEW default.kline_m1_view TO default.kline_test
(
symbol String,
open_price Decimal(20,10),
high_price Decimal(20,10),
low_price Decimal(20,10),
close_price Decimal(20,10),
trade_time DateTime
)
WATERMARK toIntervalSecond(2) AS
SELECT
symbol,
any(t.bid) AS open_price,
max(t.bid) AS high_price,
min(t.bid) AS low_price,
anyLast(t.bid) AS close_price,
tumbleStart(t_window) AS trade_time
FROM default.tb_tick AS t
GROUP BY
symbol,
tumble(toDateTime(t.ctm),toIntervalMinute(1)) AS t_window
ORDER BY
symbol ASC,
trade_time ASC;
insert into default.tb_tick VALUES('ADAUSD', 0.4655000000, 0.4643000000, '2024-05-10 09:09:09');
Error:
Received exception from server (version 24.3.3):
Code: 10. DB::Exception: Received from localhost:9000. DB::Exception: Not found column in block. There are only columns: symbol, ask, bid, ctm: while pushing to view default.kline_m1_view (8dbcc34a-6739-49e3-bdfe-5970c7da8366). (NOT_FOUND_COLUMN_IN_BLOCK)
(query: insert into default.tb_tick VALUES('ADAUSD', 0.4655000000, 0.4643000000, '2024-05-10 09:09:09');)
from clickhouse.
Related Issues (20)
- Object storages with s3_create_new_file_on_insert = 1 doesn't work properly after server restart
- Add support for processing ddsketch data type as input HOT 7
- about javaHash HOT 1
- Full Join Using has strange behaviour
- Crash Bug - Segmentation fault - Address: NULL pointer. Access: read. Address not mapped to object. HOT 1
- AzureBlobStorage fails with named collections
- S3Queue dropping rows HOT 1
- Introduce a column in system.tables: `parametrized_view_parameters` HOT 3
- input_format_parquet_allow_missing_columns is documented inconsistently in multiple places...
- Incorrect discribe csv format
- [analyzer] Cannot parse DateTime: In scope SELECT _CAST('0', 'DateTime64(3)') AS `toDateTime64('1970-01-01 00:00:00', 3)` for distributed table with more than one host in select HOT 3
- It's not possible to use from_env and default values in included files HOT 8
- Matching SELECT CityHash64(1) Behavior in C, Java, or Python. HOT 7
- Flaky test `02724_limit_num_mutations` HOT 1
- Crash with stacktrace HOT 1
- read rocksdb, exception happped: Cannot schedule a task:cannot al locate thread(thread s=88,jobs=88),(CANNOT_SCHEDULE_TASK) HOT 2
- Can't parse `true` when merging config files HOT 1
- BACKUP command MemoryTracker works wrong
- with (select 1) as x select toTypeName(x); returns Nullable(UInt8), should be UInt8. HOT 4
- insert [,,,] to column Array(Nullable(UInt8)) ; select get [0,0,0] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse.