Comments (2)
My first hunch is that the Value is created as an INTEGER, causing this to fail:
void OldImplicitCasting::SetGlobal(DatabaseInstance *db, DBConfig &config, const Value &input) {
config.options.old_implicit_casting = input.GetValue<bool>();
}
Which is solved by physical_set
with:
Value input_val = value.CastAs(context.client, option->parameter_type);
Could be that this cast is missing?
Though your example showing that "true"
does work is somewhat confusing and debunks my theory
from duckdb.
Code seems to be here:
while (env->CallBooleanMethod(iterator, J_Iterator_hasNext)) {
jobject pair = env->CallObjectMethod(iterator, J_Iterator_next);
jobject key = env->CallObjectMethod(pair, J_Entry_getKey);
jobject value = env->CallObjectMethod(pair, J_Entry_getValue);
D_ASSERT(env->IsInstanceOf(key, J_String));
const string &key_str = jstring_to_string(env, (jstring)key);
D_ASSERT(env->IsInstanceOf(value, J_String));
const string &value_str = jstring_to_string(env, (jstring)value);
try {
config.SetOptionByName(key_str, Value(value_str));
} catch (const std::exception &e) {
ErrorData error(e);
throw CatalogException("Failed to set configuration option \"%s\", error: %s", key_str, error.RawMessage());
}
}
from duckdb.
Related Issues (20)
- Unnest not supported for deeply nested JSON HOT 5
- Duplicate data when filtering CSV file on the partition keys HOT 1
- `read_parquet('s3://...', union_by_name=True)` throws "Connection error for HTTP HEAD" but `union_by_name=False` does not HOT 2
- Out of Memory Error: failed to allocate data of size 128.0 MiB HOT 1
- Bump the DuckDB.jl version HOT 1
- append_data_chunk not returning DuckDBError for malformed chunk HOT 7
- Builds on Alpine linux are failing HOT 1
- Aliases break on array(subquery) order by clauses in 0.10.2
- 0.10.2: error: non-const lvalue reference to type 'idx_t' (aka 'unsigned long') cannot bind to a value of unrelated type 'optional_idx' HOT 4
- Performance issues using LEFT JOIN HOT 4
- python : query parameterization fails for IN clause HOT 1
- Tests fail because of missing version: is git required? HOT 2
- ParamsToString() in GET table filters missing apostrophes in VARCHAR fields HOT 5
- 0.10.2 introduces new Error: Binder Error: Cannot compare values of type VARCHAR and type DATE - an explicit cast is required HOT 3
- CSV rejects table error_message is the same for each line despite column having different values HOT 1
- Documentation for COPY TO: Please mention there is no need for overwrite guard code HOT 4
- FLOAT/Integer gives FLOAT, when it should be a Double HOT 14
- read_csv ignore_errors does not work as expected HOT 2
- Duckdb (Python) 0.9.1 + 0.10.2 fails to read empty parquet files HOT 18
- 2 tests fail
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.