Skip to content

Commit e41d7c5

Browse files
committed
[web-console] Switch web-console to parse arrow-ipc
Make ARRAYs serialize as arrow List for ad-hoc queries Signed-off-by: Karakatiza666 <bulakh.96@gmail.com>
1 parent cc2c9e5 commit e41d7c5

13 files changed

Lines changed: 1105 additions & 90 deletions

File tree

bun.lock

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js-packages/web-console/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"@auth/sveltekit": "1.11.1",
66
"@axa-fr/oidc-client": "7.26.4",
77
"@biomejs/biome": "2.4.3",
8+
"@feldera/vite-plugin-monaco-editor": "workspace:*",
89
"@fontsource-variable/dm-sans": "5.2.8",
910
"@fontsource/dm-mono": "5.2.7",
10-
"@feldera/vite-plugin-monaco-editor": "workspace:*",
1111
"@fortawesome/fontawesome-free": "7.2.0",
1212
"@hey-api/client-fetch": "0.13.1",
1313
"@hey-api/openapi-ts": "0.92.4",
@@ -19,6 +19,7 @@
1919
"@skeletonlabs/skeleton-svelte": "4.12.0",
2020
"@square/svelte-store": "1.0.18",
2121
"@streamparser/json": "0.0.22",
22+
"@streamparser/json-whatwg": "^0.0.22",
2223
"@svelte-bin/clipboard": "0.1.4",
2324
"@sveltejs/adapter-auto": "7.0.1",
2425
"@sveltejs/adapter-static": "3.0.10",
@@ -38,6 +39,7 @@
3839
"@vitest/browser-playwright": "^4.1.7",
3940
"@vusion/webfonts-generator": "0.8.0",
4041
"add": "2.0.6",
42+
"apache-arrow": "github:Karakatiza666/arrow-js#dist",
4143
"args": "5.0.3",
4244
"array-join": "3.2.1",
4345
"autoprefixer": "10.4.24",

js-packages/web-console/src/lib/components/adhoc/Query.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
}
179179
}}
180180
<div
181-
class="relative scrollbar h-full max-h-64 w-fit max-w-full overflow-auto rounded"
181+
class="relative scrollbar h-full max-h-64 w-fit max-w-full overflow-auto rounded pb-3"
182182
use:reverseScroll.action
183183
{onscroll}
184184
bind:clientHeight={_.clientHeight}
@@ -187,6 +187,7 @@
187187
{#if result.columns.length}
188188
<thead>
189189
<tr>
190+
<th class="bg-white-dark sticky top-0 z-10 font-light {itemHeight}">#</th>
190191
{#each result.columns as column}
191192
<SqlColumnHeader
192193
{column}
@@ -206,6 +207,7 @@
206207
{@const row = rows[index]}
207208
{#if !row}{:else if 'cells' in row}
208209
<tr {style} class="{itemHeight} whitespace-nowrap odd:bg-white odd:dark:bg-black">
210+
<td class="text-right font-mono select-none">{index}</td>
209211
{#each row.cells as value}
210212
<SQLValue
211213
{value}

0 commit comments

Comments
 (0)