Commit 2bb5fd5
authored
Resolves #46087
### Rationale for this change
FlightSQL allows returning various column metadata in `CommandGetTables`, but one thing that's missing is human-readable column description. This PR proposes adding a new `ARROW:FLIGHT:SQL:REMARKS` metadata property taht will contain a comment describing a column. This is inspired by JDBC's [`DatabaseMetaData#getColumns()`](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-) method, and later on I'm planning on adding this change to arrow-java as well.
### What changes are included in this PR?
* A new column metadata property `ARROW:FLIGHT:SQL:REMARKS`
* C++ `ColumnMetadata` implementation
Please tell me if there's anything else in the other languages that I should add.
### Are these changes tested?
Covered by existing tests; no new test cases added.
### Are there any user-facing changes?
Yes, a couple new constants/methods added to the `ColumnMetadata` class and its builder
* GitHub Issue: #46087
Authored-by: mateuszrzeszutek <rzeszut@pm.me>
Signed-off-by: David Li <li.davidm96@gmail.com>
1 parent 81bb988 commit 2bb5fd5
File tree
4 files changed
+30
-1
lines changed- cpp/src/arrow/flight
- integration_tests
- sql
- format
4 files changed
+30
-1
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
| 1170 | + | |
1170 | 1171 | | |
1171 | 1172 | | |
1172 | 1173 | | |
| |||
1187 | 1188 | | |
1188 | 1189 | | |
1189 | 1190 | | |
| 1191 | + | |
1190 | 1192 | | |
1191 | 1193 | | |
1192 | 1194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
185 | 190 | | |
186 | 191 | | |
187 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
188 | 199 | | |
189 | 200 | | |
190 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| |||
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
172 | 184 | | |
173 | 185 | | |
174 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
| 1215 | + | |
1215 | 1216 | | |
1216 | 1217 | | |
1217 | 1218 | | |
| |||
1678 | 1679 | | |
1679 | 1680 | | |
1680 | 1681 | | |
| 1682 | + | |
1681 | 1683 | | |
1682 | 1684 | | |
1683 | 1685 | | |
| |||
1703 | 1705 | | |
1704 | 1706 | | |
1705 | 1707 | | |
| 1708 | + | |
1706 | 1709 | | |
1707 | 1710 | | |
1708 | 1711 | | |
| |||
1739 | 1742 | | |
1740 | 1743 | | |
1741 | 1744 | | |
| 1745 | + | |
1742 | 1746 | | |
1743 | 1747 | | |
1744 | 1748 | | |
| |||
1857 | 1861 | | |
1858 | 1862 | | |
1859 | 1863 | | |
1860 | | - | |
| 1864 | + | |
1861 | 1865 | | |
1862 | 1866 | | |
1863 | 1867 | | |
| |||
0 commit comments