Skip to content

Commit 311a6a8

Browse files
authored
feat(cubestore-driver): Upgrade flatbuffers to 25.9.23 (#10717)
Bumps flatbuffers from 23.3.3 to 25.9.23 and regenerates the TS bindings from http_message.fbs. Also switches the generator flag from the deprecated --ts-flat-files to --gen-all. Notable runtime improvement: createString now uses Uint8Array.set instead of a per-byte loop, which is ~2-3x faster for large payloads such as the csv_rows field on inline tables.
1 parent e4ef002 commit 311a6a8

12 files changed

Lines changed: 24 additions & 6 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

3-
flatc --ts ../../../rust/cubeshared/src/codegen/http_message.fbs --ts-flat-files
3+
flatc --ts ../../../rust/cubeshared/src/codegen/http_message.fbs --gen-all
44
mv http_message.ts index.ts

packages/cubejs-cubestore-driver/codegen/http-column-value.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
export class HttpColumnValue {

packages/cubejs-cubestore-driver/codegen/http-command.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import { HttpError } from './http-error.js';
46
import { HttpQuery } from './http-query.js';
57
import { HttpResultSet } from './http-result-set.js';

packages/cubejs-cubestore-driver/codegen/http-error.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
export class HttpError {

packages/cubejs-cubestore-driver/codegen/http-message.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { HttpCommand, unionToHttpCommand, unionListToHttpCommand } from './http-command.js';

packages/cubejs-cubestore-driver/codegen/http-query.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { HttpTable } from './http-table.js';

packages/cubejs-cubestore-driver/codegen/http-result-set.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { HttpRow } from './http-row.js';

packages/cubejs-cubestore-driver/codegen/http-row.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { HttpColumnValue } from './http-column-value.js';

packages/cubejs-cubestore-driver/codegen/http-table.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
export class HttpTable {

packages/cubejs-cubestore-driver/codegen/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
export { HttpColumnValue } from './http-column-value.js';
46
export { HttpCommand } from './http-command.js';
57
export { HttpError } from './http-error.js';

0 commit comments

Comments
 (0)