Commit 8a3f67a
committed
Add DEBUG log on compile and verify insertmanyvalues path
- Adds a single DEBUG-level log in DatabricksStatementCompiler.__init__
recording the template and the compiled SQL. Fires once per
compilation, only when sqlalchemy logging is at DEBUG. Quiet at
default log levels — no per-bindparam noise.
- Empirically verified the _deliver_insertmanyvalues_batches code path
(compiler.py:5648) works with the backticked template. Flipping
use_insertmanyvalues=True and bulk-inserting 20 rows into a table
with a hyphenated column produced the expected SQL
(:`id__0`, :`col-name__0`, ...) logged as "generated in X
(insertmanyvalues)" by SQLAlchemy, and all 20 rows round-tripped.
Co-authored-by: Isaac1 parent fa99182 commit 8a3f67a
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
123 | 135 | | |
124 | 136 | | |
125 | 137 | | |
| |||
0 commit comments