fix: compile error error: could not convert xx from#136
Merged
Xuanwo merged 1 commit intolance-format:mainfrom Feb 3, 2026
Merged
fix: compile error error: could not convert xx from#136Xuanwo merged 1 commit intolance-format:mainfrom
Xuanwo merged 1 commit intolance-format:mainfrom
Conversation
Contributor
Author
|
@Xuanwo Please take a look when you have a moment. |
Xuanwo
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I used
gcc 12.3.1and runGEN=ninja make debuggcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-TencentOS-linux/12/lto-wrapper
Target: x86_64-TencentOS-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --with-pkgversion='Tencent Compiler 12.3.1.7' --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://gcc.gnu.org/bugzilla/ --enable-shared --enable-threads=posix --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --without-isl --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-TencentOS-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.3.1 20230912 (TencentOS 12.3.1.7-1) (Tencent Compiler 12.3.1.7)
src/lance_scan.cpp:2193:12: error: could not convert ‘exec’ from ‘unique_ptr<duckdb::LogicalLanceExec,default_deleteduckdb::LogicalLanceExec,[...]>’ to ‘unique_ptr<duckdb::LogicalOperator,default_deleteduckdb::LogicalOperator,[...]>’
2193 | return exec;
| ^~~~
| |
| unique_ptr<duckdb::LogicalLanceExec,default_deleteduckdb::LogicalLanceExec,[...]>
[394/440] Building CXX object extension/lance/CMakeFiles/lance_loadable_extension.dir/src/lance_storage.cpp.o
FAILED: extension/lance/CMakeFiles/lance_loadable_extension.dir/src/lance_storage.cpp.o
src/lance_storage.cpp:1150:18: error: could not convert ‘state’ from ‘unique_ptr<duckdb::LanceDuckCatalog::PlanCreateTableAs(duckdb::ClientContext&, duckdb::PhysicalPlanGenerator&, duckdb::LogicalCreateTable&, duckdb::PhysicalOperator&)::PhysicalLanceCreateTableAs::GlobalState,default_delete<duckdb::LanceDuckCatalog::PlanCreateTableAs(duckdb::ClientContext&, duckdb::PhysicalPlanGenerator&, duckdb::LogicalCreateTable&, duckdb::PhysicalOperator&)::PhysicalLanceCreateTableAs::GlobalState>,[...]>’ to ‘unique_ptr<duckdb::GlobalSinkState,default_deleteduckdb::GlobalSinkState,[...]>’
1150 | return state;
| ^~~~~
| |
| unique_ptr<duckdb::LanceDuckCatalog::PlanCreateTableAs(duckdb::ClientContext&, duckdb::PhysicalPlanGenerator&, duckdb::LogicalCreateTable&, duckdb::PhysicalOperator&)::PhysicalLanceCreateTableAs::GlobalState,default_delete<duckdb::LanceDuckCatalog::PlanCreateTableAs(duckdb::ClientContext&, duckdb::PhysicalPlanGenerator&, duckdb::LogicalCreateTable&, duckdb::PhysicalOperator&)::PhysicalLanceCreateTableAs::GlobalState>,[...]>