Skip to content

dolthub/dolt#9554 - Fix varbinary fields displaying as unicode instead of hex#9561

Merged
elianddb merged 20 commits intomainfrom
elianddb/9554-fix-varbinary-hex-display
Jul 30, 2025
Merged

dolthub/dolt#9554 - Fix varbinary fields displaying as unicode instead of hex#9561
elianddb merged 20 commits intomainfrom
elianddb/9554-fix-varbinary-hex-display

Conversation

@elianddb
Copy link
Contributor

@elianddb elianddb commented Jul 22, 2025

Fixes #9554

  • Adds --binary-as-hex flag to print binary types varbinary and binary as hex through custom iterator in the print layer

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch 2 times, most recently from 180ec48 to 5375db4 Compare July 22, 2025 22:55
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
5375db4 ok 5937457
version total_tests
5375db4 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
5a0d350 ok 5937457
version total_tests
5a0d350 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
b715854 ok 5937457
version total_tests
b715854 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from 2c96093 to 47c6fd1 Compare July 23, 2025 16:45
@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
6290723 ok 5937457
version total_tests
6290723 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
5b95da5 ok 5937457
version total_tests
5b95da5 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from 5b95da5 to 73b7ecf Compare July 23, 2025 19:18
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
73b7ecf ok 5937457
version total_tests
73b7ecf 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
95a5d99 ok 5937457
version total_tests
95a5d99 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
b02cede ok 5937457
version total_tests
b02cede 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from b02cede to dafff84 Compare July 24, 2025 21:00
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
dafff84 ok 5937457
version total_tests
dafff84 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from 7301cfd to af77400 Compare July 24, 2025 21:42
@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
7301cfd ok 5937457
version total_tests
7301cfd 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
af77400 ok 5937457
version total_tests
af77400 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
e1bda18 ok 5937457
version total_tests
e1bda18 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from 36e99b1 to 4379136 Compare July 25, 2025 17:06
@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
58a6c77 ok 5937457
version total_tests
58a6c77 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from 58a6c77 to 23ea946 Compare July 25, 2025 20:06
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
23ea946 ok 5937457
version total_tests
23ea946 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
ba16ec1 ok 5937457
version total_tests
ba16ec1 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from ba16ec1 to 5092978 Compare July 25, 2025 22:06
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
5092978 ok 5937457
version total_tests
5092978 5937457
correctness_percentage
100.0

Copy link
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from 9d88dc5 to 130ef21 Compare July 28, 2025 20:41
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
130ef21 ok 5937457
version total_tests
130ef21 5937457
correctness_percentage
100.0

@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch from 1071711 to debe8e8 Compare July 28, 2025 22:59
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
debe8e8 ok 5937457
version total_tests
debe8e8 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
cf1ec51 ok 5937457
version total_tests
cf1ec51 5937457
correctness_percentage
100.0

Copy link
Contributor

@macneale4 macneale4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks pretty good, nothing blocking.

Test infra needs a lot of work. Duplication of tests won't age well, and you could avoid it by using the existing infra to run commands in both modes.

Copy link
Contributor

@macneale4 macneale4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One necessary update in the bats file where I think we could skip incorrectly. Feel free to fix and ship.

elianddb added 3 commits July 30, 2025 12:07
- Resolves conflicts in sql.go by integrating both:
  1. Main branch's query catalog refactoring (direct SQL queries, no dEnv dependency)
  2. Binary-as-hex parameter support from feature branch
- Maintains SaveQuery function name from main branch
- Preserves binaryAsHex parameter threading through all query execution paths
- Updates function signatures to match main branch's simplified approach
@elianddb elianddb force-pushed the elianddb/9554-fix-varbinary-hex-display branch 2 times, most recently from d30c3d8 to ef549b9 Compare July 30, 2025 19:45
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
0ae19fd ok 5937457
version total_tests
0ae19fd 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
04d13dc ok 5937457
version total_tests
04d13dc 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
85b2f27 ok 5937457
version total_tests
85b2f27 5937457
correctness_percentage
100.0

- Accept all changes from main branch for go.mod and go.sum
- Ensures compatibility with latest dependency versions
- Preserves binary-as-hex functionality from feature branch
@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
8b8f0b2 ok 5937457
version total_tests
8b8f0b2 5937457
correctness_percentage
100.0

@elianddb elianddb merged commit 7734ccb into main Jul 30, 2025
21 checks passed
@Hydrocharged Hydrocharged deleted the elianddb/9554-fix-varbinary-hex-display branch December 15, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

varbinary fields are presented as unicode instead of hex

4 participants