chore: auto-commit (5 archivos)

- playground/tables/CMakeLists.txt
- playground/tables/data_table.cpp
- playground/tables/self_test.cpp
- playground/tables/tql_duckdb.cpp
- playground/tables/tql_duckdb.h

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-13 01:22:02 +02:00
parent 100aeaa1fc
commit dc373e4b2b
5 changed files with 384 additions and 6 deletions
+13 -1
View File
@@ -5,6 +5,9 @@
#include "lua_engine.h"
#include "tql.h"
#include "tql_to_sql.h"
#ifdef FN_TQL_DUCKDB
# include "tql_duckdb.h"
#endif
#include "viz.h"
#include <algorithm>
@@ -3341,8 +3344,17 @@ void render(const char* id,
U.ask_status = "Apply failed.";
}
} else {
// SQL apply: requires DuckDB adapter (no v1).
#ifdef FN_TQL_DUCKDB
// SQL apply: ejecutar via tql_duckdb sobre TableInputs activas.
// Para tablas en memoria construimos un TableInput basico desde
// active_headers/types. v1 no recupera cells originales aqui;
// reportamos solo error si fallo. Caller real deberia pasar
// tables() del render scope. Sin esto, marcamos status info.
U.ask_status = "SQL execute disponible (FN_TQL_DUCKDB ON). "
"Integracion full pendiente: usar tql_duckdb::execute desde caller.";
#else
U.ask_status = "SQL execute requires FN_TQL_DUCKDB build flag.";
#endif
}
}
ImGui::EndDisabled();