Fix inserting into table with identifiers with quotes#13237
Conversation
|
Maven checks are complaining, but otherwise looks good to me |
|
Can you add a test to |
yeah I forgot about header :D |
I thought about that but decided it is more optimal to just unit test this. But sure I can add it. |
2e42758 to
5961778
Compare
|
@alexjo2144 comments applied |
|
Shouldn't this have release notes? |
There was a problem hiding this comment.
I assume the uppercase T is not intentional, and it distracts from the purpose of the test.
There was a problem hiding this comment.
Let's call the row x since "a row" sounds like English and blends in with the other identifiers.
There was a problem hiding this comment.
ImmutableMap.of() can be hard to read, since the key/value pairs blend together. We can write this as
assertThat(PrimitiveTypeMapBuilder.makeTypeMap(inputTypes, inputColumnNames).containsExactly(
Map.entry(List.of("an_x20identifier_x20with_x20_x22quotes_x22_x20"), INTEGER),
Map.entry(List.of("a", "another_x20identifier"), INTEGER));There was a problem hiding this comment.
I will do it but with ImmutableList instead of List as I think in general we use ImmutableList much more often
Ok |
45a87af to
1103bdd
Compare
1103bdd to
97a5944
Compare
|
Just added |
58b0abd to
97a5944
Compare
|
Merged, thanks! |
Description
a fix
a connector
It fixes inserts for tables with columns with quotes in their names
Related issues, pull requests, and links
Fixes: #13074
Documentation
(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
(x) Release notes entries required with the following suggested text: