You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because of a delicate change in #11944 and a hidden assumption: that there's always going to be at least one table... In our case there isn't any table, and a counter was not incremented when the algorithm assumed it would be.
Reproduction Steps
funcTestNewSchemaFromQueriesViewFromDual(t*testing.T) {
queries:= []string{
"create view v20 as select 1 from dual",
}
_, err:=NewSchemaFromQueries(queries)
assert.NoError(t, err)
}
^ the above fails with error
Binary Version
-
Operating System and Environment details
-
Log Fragments
No response
The text was updated successfully, but these errors were encountered:
Overview of the Issue
In a scenario where the entire schema is:
We get a
This is because of a delicate change in #11944 and a hidden assumption: that there's always going to be at least one table... In our case there isn't any table, and a counter was not incremented when the algorithm assumed it would be.
Reproduction Steps
^ the above fails with error
Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: