Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dolt_history_<table> panics on enum types #4279

Closed
timsehn opened this issue Sep 7, 2022 · 2 comments · Fixed by #4283
Closed

dolt_history_<table> panics on enum types #4279

timsehn opened this issue Sep 7, 2022 · 2 comments · Fixed by #4283
Assignees
Labels
bug Something isn't working panic sql Issue with SQL

Comments

@timsehn
Copy link
Sponsor Contributor

timsehn commented Sep 7, 2022

PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt init
Successfully initialized dolt data repository.
PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt version
dolt version 0.40.32
database storage format: OLD ( __LD_1__ )
PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt sql -q "create table t (pk int primary key, c1 enum('foo', 'bar'), c2 int)";
PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt schema show
t @ working
CREATE TABLE `t` (
  `pk` int NOT NULL,
  `c1` enum('foo','bar'),
  `c2` int,
  PRIMARY KEY (`pk`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin;

PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt add t
PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt commit -m "added table)
>> "
←[33mcommit mc7usod8ctc04p7k786c8tkfkokg97ma ←[0m←[33m(←[0m←[36;1mHEAD -> ←[0m←[32;1mmain←[0m←[33m) ←[0m
Author: Tim Sehn <tim@dolthub.com>
Date:  Tue Sep 06 21:47:24 -0700 2022

        added table)


PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt sql -q "insert into t values (0, 'foo', 0)"
Query OK, 1 row affected
PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt commit -am "insert row 0"
←[33mcommit c2g2itva1lccur7ghcgev912b5rlipat ←[0m←[33m(←[0m←[36;1mHEAD -> ←[0m←[32;1mmain←[0m←[33m) ←[0m
Author: Tim Sehn <tim@dolthub.com>
Date:  Tue Sep 06 21:49:38 -0700 2022

        insert row 0


PS C:\Users\timse\dolthub\dolt\test_enum_history> dolt sql -q "select * from dolt_history_t"
error executing query on line 1: panic in ExchangeIterPartitionRows: runtime error: comparing uncomparable type sql.enumType
@timsehn timsehn added bug Something isn't working sql Issue with SQL panic labels Sep 7, 2022
@jycor jycor self-assigned this Sep 7, 2022
@timsehn
Copy link
Sponsor Contributor Author

timsehn commented Sep 7, 2022

@jcor11599 is going to get to this today.

@jycor
Copy link
Contributor

jycor commented Sep 7, 2022

Fix has been merged to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working panic sql Issue with SQL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants