Comments (15)
Feel free to send it to me at [email protected], using something like wetransfer.com should work Note that I am making an exception this one time
hi..I’m wondering if you received my email last week
I replied and asked you to send it through another service, Baidu is not something we can use, can you use SendBig? That should be available in china as well
from duckdb.
Thanks for opening this issue! Based on our automated check, it seems that your post contains some code but it does not use code blocks to format it.
Please double-check your post and revise it if necessary. To employ syntax highlighting, it's recommended to use code blocks with triple backticks, e.g.:
```sql
SELECT ...
```
If this is a false positive, feel free to disregard this comment.
from duckdb.
void UncompressedStringStorage::StringScanPartial(ColumnSegment &segment, ColumnScanState &state, idx_t scan_count,
Vector &result, idx_t result_offset) {
// clear any previously locked buffers and get the primary buffer handle
auto &scan_state = state.scan_state->Cast();
auto start = segment.GetRelativeIndex(state.row_index);
auto baseptr = scan_state.handle.Ptr() + segment.GetBlockOffset();
auto dict = GetDictionary(segment, scan_state.handle);
auto base_data = reinterpret_cast<int32_t *>(baseptr + DICTIONARY_HEADER_SIZE);
auto result_data = FlatVector::GetData<string_t>(result);
int32_t previous_offset = start > 0 ? base_data[start - 1] : 0;
for (idx_t i = 0; i < scan_count; i++) {
// std::abs used since offsets can be negative to indicate big strings
uint32_t string_length = std::abs(base_data[start + i]) - std::abs(previous_offset);
result_data[result_offset + i] =
FetchStringFromDict(segment, dict, result, baseptr, base_data[start + i], string_length);
-->here I dump the debug:
scan_count
105
string_length
925352919
segment
{...}
duckdb::SegmentBaseduckdb::ColumnSegment (base):
duckdb::SegmentBaseduckdb::ColumnSegment
db:
{...}
type
type_size:
16
segment_type:
duckdb::PERSISTENT
function
stats
block:
std::shared_ptr (count 15, weak 1) 0x808248
block_id:
2452
offset:
180912
segment_size:
262136
segment_state
from duckdb.
.schema dsmock_group_tree
CREATE TABLE dsmock_group_tree(_id VARCHAR PRIMARY KEY, tree_id VARCHAR NOT NULL DEFAULT(''), org_id BIGINT NOT NULL DEFAULT(0), asset_id BIGINT NOT NULL DEFAULT(0), updated_at BIGINT NOT NULL DEFAULT(0), deleted_at BIGINT NOT NULL DEFAULT(0));
select count(1) from dsmock_group_tree; it work ok and got result:
┌──────────┐
│ count(1) │
│ int64 │
├──────────┤
│ 105 │
└──────────┘
select org_id from dsmock_group_tree ; it ok
select asset_id from dsmock_group_tree ;it ok
but select tree_id from dsmock_group_tree it crashed by the assert
from duckdb.
Please make a reproducable example, I have extracted the following queries from your report, with those I can't reproduce the issue, please adjust where necessary
statement ok
CREATE TABLE dsmock_group_tree(
_id VARCHAR PRIMARY KEY,
tree_id VARCHAR NOT NULL DEFAULT(''),
org_id BIGINT NOT NULL DEFAULT(0),
asset_id BIGINT NOT NULL DEFAULT(0),
updated_at BIGINT NOT NULL DEFAULT(0),
deleted_at BIGINT NOT NULL DEFAULT(0)
)
statement ok
INSERT INTO dsmock_group_tree (
_id,
tree_id,
org_id,
asset_id,
updated_at,
deleted_at
) VALUES (
'1492bbd9-6a8a-4f62-9751-71ad1afc4828',
'9fd27437-887b-424b-8f61-9eb8fd9607e0',
276195621352,
276195621352,
1709260345874609,
0
)
ON CONFLICT (
_id
) DO UPDATE SET
tree_id = EXCLUDED.tree_id,
org_id = EXCLUDED.org_id,
asset_id = EXCLUDED.asset_id,
updated_at = EXCLUDED.updated_at,
deleted_at = EXCLUDED.deleted_at
(note statement ok
is syntax for our unittester, you can disregard those)
from duckdb.
You're also welcome to provide the db file if that's the only way you can make this reproducable.
from duckdb.
I can give you my test db .but it is over 1G size .how can I send it to you ?
from duckdb.
I test I can drop some table,and it still keep crash when i use the test sql .hope the total file size can get smaller
from duckdb.
this file is still 800M ... how can I send it to you?
from duckdb.
Feel free to send it to me at [email protected], using something like wetransfer.com should work
Note that I am making an exception this one time
from duckdb.
got it and send the downlink link mail to you
from duckdb.
Feel free to send it to me at [email protected], using something like wetransfer.com should work Note that I am making an exception this one time
hi..I’m wondering if you received my email last week
from duckdb.
has send db to you by sendbig .thanks
from duckdb.
I received the file and can indeed reproduce the issue, but since the error occurs in decompression, there's too little information for us to work with.
Please let us know if you can make a minimal reproduction of steps that can cause this error to occur when performed on a clean database
from duckdb.
from duckdb.
Related Issues (20)
- `REGEX_EXTRACT` fails with variable `IDX` HOT 1
- The upper limit of the data type in the tpc-h table is not sufficient, resulting in a negative result set HOT 2
- duckdb_sequences() fails after inserting into a table with a sequence column HOT 2
- TPCH300 Parquet, Query 8 , failed: value is out of range! HOT 6
- Group By not commutative HOT 5
- Using PER_THREAD_OUTPUT option with EXPORT DATABASE results in unloadable database dump HOT 1
- INSERT .. SELECT .. UNION crashes JVM when run from JDBC
- [JDBC] DatabaseMetadata.getColumns returns the wrong type for DECIMAL columns
- Unable to connect to buenavista duckdb/postgres instance HOT 2
- java.lang.RuntimeException: java.sql.SQLException: Invalid Input Error: Attempting to execute an unsuccessful or closed pending query result
- DuckDB's division behavior is slightly anachronistic in corner cases HOT 2
- Weird equality comparison when `TIMESTAMP_NS` stored in tables, subqueries and CTEs is casted to `DATE` HOT 1
- ODBC Driver doesn't handle path to database correctly
- java.nio.BufferUnderflowException when reading Blob.getBytes() from JDBC HOT 3
- Memory usage increases after performing update on column of list types, e.g. integer[]
- ODBC under Windows doesn't handle UTF-8 correctly HOT 1
- Incorrect/inconsistent replacement scans behavior HOT 1
- Catalog Error with nested CTEs
- Cannot reference column from CTE in a set returning function HOT 5
- json extension - fatal error during loading HOT 3
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 duckdb.