Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
32226d0
Intial commit for phase 4: Dashboards
cgivre Feb 6, 2026
4df7976
More Phase 4 work
cgivre Feb 6, 2026
a40974d
Dashboard Improvements
cgivre Feb 6, 2026
ff8dc9c
Fix RAT
cgivre Feb 6, 2026
c7d951d
Add Image Upload to Dashboard
cgivre Feb 6, 2026
789a125
Image upload working
cgivre Feb 6, 2026
fbc7e7f
Added Frontend Unit tests
cgivre Feb 6, 2026
3c82913
Unit test fix
cgivre Feb 6, 2026
3c013d2
Fix CodeQL issues
cgivre Feb 8, 2026
51569a2
Fix CodeQL issues
cgivre Feb 8, 2026
8428170
Try again...
cgivre Feb 8, 2026
e2fea4f
More CodeQL Fixes
cgivre Feb 8, 2026
600341c
More code fixes
cgivre Feb 8, 2026
cb73d26
Fix build error
cgivre Feb 8, 2026
c9d552e
Various fixes
cgivre Feb 9, 2026
478df4a
XML Nav Tree Improvements
cgivre Feb 9, 2026
533d94c
Nav Tree working
cgivre Feb 9, 2026
1925357
Add big number
cgivre Feb 9, 2026
0a23ff3
Finished File System Config
cgivre Feb 11, 2026
c36bf8f
Fix Linting
cgivre Feb 11, 2026
3578176
Fix useEffect dependency order in ProspectorSettingsModal
cgivre Feb 11, 2026
72534e9
Improve workspace tab UI with instructions, validation, and security
cgivre Feb 11, 2026
d19ae37
Fix Add Workspace button and handle classpath plugin special case
cgivre Feb 11, 2026
2465d0f
Hide workspace tab for classpath plugin
cgivre Feb 11, 2026
38f2be5
Fix Add Workspace button with proper useCallback dependencies
cgivre Feb 11, 2026
607343d
Stabilize workspace handlers and table columns with useCallback and u…
cgivre Feb 11, 2026
cbde3dd
Fix Add Workspace button state persistence issue
cgivre Feb 11, 2026
2db8e32
Add validation for duplicate workspace names
cgivre Feb 11, 2026
9598f1d
Fix workspace initialization on first mount
cgivre Feb 11, 2026
d7ef9dd
More improvements
cgivre Feb 12, 2026
b06aa92
Implement column menus for ResultsGrid with comprehensive feature set
cgivre Feb 12, 2026
1119450
Various improvements
cgivre Feb 12, 2026
764b093
Dark mode:
cgivre Feb 12, 2026
f8f099a
Minor bug fix
cgivre Feb 12, 2026
6dee472
Fix state
cgivre Feb 13, 2026
d909840
Fix Vault Unit Tests
cgivre Feb 13, 2026
43b2d50
Fix Docker based unit tests
cgivre Feb 13, 2026
8bac537
Visualization improvements
cgivre Feb 13, 2026
823a8d7
Link fix
cgivre Feb 13, 2026
d125a38
Various fixes
cgivre Feb 18, 2026
9b5a6f3
Fixing time grain issues
cgivre Feb 18, 2026
f051800
WIP Time Grain
cgivre Feb 18, 2026
de5e101
Time grain working
cgivre Feb 18, 2026
25786eb
Filter improvements and hardening.
cgivre Feb 19, 2026
51ab62b
Refactor SQL generator to use Java port of SQL Glot
cgivre Feb 23, 2026
0f1d1a0
Fix checkstyles
cgivre Feb 23, 2026
a341a63
Add trendlines
cgivre Feb 25, 2026
f2b10fc
Profile page improvements
cgivre Feb 26, 2026
5672c71
Implement Profile Detail Page — Dashboard-style redesign with AI advisor
cgivre Feb 26, 2026
de139c3
Improve Profile Detail Page layout: add query display and evenly-spac…
cgivre Feb 26, 2026
4fcf90b
Fix AI advisor context serialization error
cgivre Feb 26, 2026
da3ecd4
Add credential redaction to prevent sensitive data exposure to AI
cgivre Feb 26, 2026
3752296
Improve CSRF token handling for hosted deployments
cgivre Feb 26, 2026
8b1d14b
Revert "Improve CSRF token handling for hosted deployments"
cgivre Feb 26, 2026
eaaca7f
Added new visualizations
cgivre Mar 2, 2026
421bd25
Fix streaming UI bug
cgivre Mar 2, 2026
e14fb3a
WIP
cgivre Mar 6, 2026
92a3995
Size improvements
cgivre Mar 6, 2026
7e120a1
UI Improvements
cgivre Mar 8, 2026
4f09d13
More data sources
cgivre Mar 9, 2026
ef76a6a
More data sources
cgivre Mar 9, 2026
6b822e8
Schema tree fixes
cgivre Mar 9, 2026
b016365
Fix Metrics and Profiles Pages
cgivre Mar 10, 2026
cb6ff75
Schema tree fixes
cgivre Mar 11, 2026
32515c9
Updated gitignore
cgivre Mar 11, 2026
434894c
Fix CodeQL issues
cgivre Mar 11, 2026
7045f25
Add backend result cache service with security hardening
cgivre Mar 12, 2026
4db53b6
Add frontend memory optimization with LRU cache and backend integration
cgivre Mar 12, 2026
e58f235
Add server-side pagination for large result sets
cgivre Mar 12, 2026
fb503ed
Remove unused act import from useServerPagination test
cgivre Mar 12, 2026
d5a094e
Fix CodeQL
cgivre Mar 12, 2026
41cd7ad
Fix build errors
cgivre Mar 12, 2026
b4eb6f2
PDF Fix
cgivre Mar 12, 2026
400f2c5
Various updates
cgivre Mar 12, 2026
16b91f8
Added sys project
cgivre Mar 12, 2026
9b0b909
Fix unit tests
cgivre Mar 13, 2026
b7de2a3
Fix CodeQL issues
cgivre Mar 13, 2026
005c4c8
Various AI improvements
cgivre Mar 16, 2026
9affd6b
Various fixes
cgivre Mar 17, 2026
b8f67f6
Project refinements
cgivre Mar 18, 2026
1e904c8
Fix Checkstyle
cgivre Mar 18, 2026
8947314
Fix schema search
cgivre Mar 18, 2026
315bc5d
Fix query tab
cgivre Mar 18, 2026
feff71c
Scheduler in progress
cgivre Mar 19, 2026
33f0c84
Scheduler improvements
cgivre Mar 20, 2026
4fbfffe
Various fixes
cgivre Mar 22, 2026
9418a4c
Improve SqlLab layout and AI suggestions
cgivre Mar 23, 2026
171e85a
Fix: Add backtick escaping to INFORMATION_SCHEMA.COLUMNS query
cgivre Mar 24, 2026
2ffeb47
Fix: Add missing backticks to INFORMATION_SCHEMA.COLUMNS and simplify…
cgivre Mar 24, 2026
7a999a8
Fix: Extract fetchColumnsForTable private helper to fix getSchemaTree
cgivre Mar 24, 2026
a55d106
Fix: Use fresh WebUserConnection for each metadata query
cgivre Mar 24, 2026
a60fb22
Fix: Correct WebUserConnection constructor call
cgivre Mar 24, 2026
c5d37cb
Refactor: Add boolean parameter to executeQuery for connection reuse …
cgivre Mar 24, 2026
231ffc7
Improve AI Query Suggestions: format, name tabs, remove panel expansion
cgivre Mar 24, 2026
a7eae7a
Fix: Remove unused Space import from QuerySuggestions
cgivre Mar 24, 2026
a58983f
Fix: Change allValidTables from let to const
cgivre Mar 24, 2026
ac0272a
Fix: Pass suggestion title to parent component in AiAssistantModal
cgivre Mar 24, 2026
25e5cd0
Implement hierarchical geographic map support with lazy-loading
cgivre Mar 24, 2026
0334e3b
Update TODO: mark Choropleth Maps as complete
cgivre Mar 24, 2026
d199850
Fix project data loading: load saved queries and improve cache handling
cgivre Mar 24, 2026
445d296
Add US ZIP Code geographic map support
cgivre Mar 24, 2026
0d1772a
Clean up: remove Python download scripts, fix linting
cgivre Mar 24, 2026
75b0e75
Fix: replace dynamic import with static import in SqlLabPage
cgivre Mar 24, 2026
368c623
Remove broken us-zipcodes placeholder
cgivre Mar 24, 2026
d9d5eb6
Add US ZIP Code support with DC data + full US instructions
cgivre Mar 24, 2026
088f33d
Add .gitignore for large GeoJSON files + setup script
cgivre Mar 24, 2026
b514095
Add debugging logs for choropleth map rendering and GeoJSON loading
cgivre Mar 24, 2026
8c53365
Add state-level ZIP code support to GeoMapRegistry and create Python …
cgivre Mar 24, 2026
68cfdb3
Add multi-select UI for state-level ZIP code scopes
cgivre Mar 24, 2026
31bbf2f
Fix: Include 'US ZIP Codes (by State)' group in GEO_SCOPE_OPTIONS
cgivre Mar 24, 2026
f361382
Add merged US ZIP codes GeoJSON (4,388 ZIP codes from 14 states)
cgivre Mar 25, 2026
02949a1
Improve ZIP code download: minification + 5-minute timeout
cgivre Mar 25, 2026
9396965
Add polygon simplification to reduce file sizes by 67%
cgivre Mar 25, 2026
55f776b
Optimize ZIP code performance: use state-specific files instead of me…
cgivre Mar 25, 2026
d55263a
Replace NaN with 0 in choropleth visualization data
cgivre Mar 25, 2026
d00c3d4
Convert us-zipcodes from GeoJSON to TopoJSON for 76% size reduction
cgivre Mar 25, 2026
1be2771
Add @types/topojson-client for TypeScript support
cgivre Mar 25, 2026
1d31718
Fix ESLint errors: remove self-assignments and any type annotation
cgivre Mar 25, 2026
2c9c274
Add Apache License headers to scripts and data files
cgivre Mar 25, 2026
7761b10
Implement choropleth zoom and center configuration
cgivre Mar 25, 2026
df99cdf
Allow capturing choropleth map view from interactive preview
cgivre Mar 25, 2026
a436794
Add 'Manage Data Sources' to admin menu
cgivre Mar 25, 2026
14e0177
Fix ref type annotations in map capture feature
cgivre Mar 25, 2026
17fb496
Fix route parameter collision between project and dashboard IDs
cgivre Mar 25, 2026
4be7dc7
Fix: prevent first saved query from loading into new tabs
cgivre Mar 25, 2026
885b0cc
Fix: preserve lock state and visualization IDs when duplicating tabs
cgivre Mar 25, 2026
41dbc6a
Initialize lock and viz fields for new tabs
cgivre Mar 25, 2026
815b607
Add sort direction controls to metric and categorical visualizations
cgivre Mar 25, 2026
9b8d095
Add number formatting, labels, and sparkline data limiting to metric …
cgivre Mar 25, 2026
f9add2a
Add currency formatting and consolidate metric visualization options …
cgivre Mar 25, 2026
01f9635
Move Sort Direction control to appear right after Order By for bigNumber
cgivre Mar 25, 2026
d6ae51c
Fix AI Q&A panel data access across dashboard tabs
cgivre Mar 25, 2026
ca2c2d0
Include SQL queries in AI Q&A dashboard context
cgivre Mar 25, 2026
23a619b
Instruct AI to keep dashboard Q&A responses brief
cgivre Mar 25, 2026
81de6e4
Make AI Q&A instruction explicit: use only dashboard data, no databas…
cgivre Mar 25, 2026
43c5add
Fix AI Q&A to use only dashboard data, add clear button
cgivre Mar 25, 2026
1f82f20
Fix JDBC Config
cgivre Apr 6, 2026
a35f73d
Fix license
cgivre Apr 6, 2026
ed227ac
Various fixes
cgivre Apr 10, 2026
c1af1b0
Enforce per-user authorization on schedule endpoints
cgivre Apr 24, 2026
655c2ef
Various fixes
cgivre May 1, 2026
690233a
Fix linting
cgivre May 1, 2026
1ed3bef
Fix CommandPalette test for Spotlight rebuild
cgivre May 1, 2026
a2791f6
More Apple Design
cgivre May 5, 2026
ca65ca1
Add Format SQL, Add-to-dashboard, column-dep badge
cgivre May 5, 2026
35d58f0
Move schema browser to a dedicated left rail
cgivre May 6, 2026
366c65d
Double-click table opens a new SQL tab
cgivre May 6, 2026
3b7df12
More progress
cgivre May 18, 2026
92c6583
Additional Updates
cgivre Jun 10, 2026
eb3ea05
Remove stale code
cgivre Jun 16, 2026
dc96869
Various minor fixes
cgivre Jun 17, 2026
2c7e983
Fix unit tests
cgivre Jun 25, 2026
efa68e2
Add enterprise AI provider support for internal models
cgivre Jul 3, 2026
98408ae
Complete Phase 2: Implement proxy, SSL/TLS, custom headers with compr…
cgivre Jul 3, 2026
4ac169c
Update documentation with enterprise AI provider support
cgivre Jul 3, 2026
89afb33
Fix missing assertTrue import in test files
cgivre Jul 3, 2026
6e61417
Lint fixees
cgivre Jul 3, 2026
a731f90
Fix flaky Splunk tests
cgivre Jul 9, 2026
5895047
Validate AI endpoint scheme and dedupe endpoint normalization
cgivre Jul 9, 2026
f8f8211
Wait for Splunk ansible-complete log instead of HTTP probe
cgivre Jul 10, 2026
90ea6ad
Added OAuth for AI
cgivre Jul 10, 2026
4bc2338
Fix SSL issues
cgivre Jul 10, 2026
24cbbdf
Connect Splunk tests over HTTPS and pin the container image
cgivre Jul 15, 2026
9a4a480
Bypass the JVM global proxy for AI endpoints and accept PEM truststores
cgivre Jul 15, 2026
c10a872
Add design spec for Prospector logging and project context
cgivre Jul 15, 2026
7007d72
Add implementation plan for Prospector interaction logging
cgivre Jul 15, 2026
dc720af
Enforce AI feature tagging with the type system rather than a grep test
cgivre Jul 15, 2026
350912e
Separate AI event construction from logging and fix success flag
cgivre Jul 15, 2026
44dfc52
Read the originating feature from ChatContext for AI analytics
cgivre Jul 15, 2026
273a2af
Require an originating feature on every AI call
cgivre Jul 15, 2026
6cf4631
Correct AiLogsResources path and registration in the logging plan
cgivre Jul 15, 2026
2a8ce6b
Remove client-side AI logging in favour of server events
cgivre Jul 15, 2026
4ce5413
Record AI setup failures and config-test calls
cgivre Jul 15, 2026
e6dd8a1
Fix AiEvent.user null regression from commit 4ce54133d
cgivre Jul 15, 2026
bc0988b
Distinguish unconfigured AI analytics from no usage
cgivre Jul 15, 2026
2ca9f9b
Document the AI analytics feature vocabulary
cgivre Jul 15, 2026
56a95f5
Record failed AI config tests as failures, not successes
cgivre Jul 15, 2026
a584b19
Refresh AiEvent javadoc and cover resolveUser's empty-name branch
cgivre Jul 15, 2026
5903e10
Require event log matches to be files, not directories
cgivre Jul 15, 2026
1cbc6c8
Label every AI feature and fix the idle-dashboard banner
cgivre Jul 15, 2026
9490692
Replace feature-slug source scanner with type-level enforcement
cgivre Jul 15, 2026
a5795e7
Add AI-created visualizations to the active project
cgivre Jul 15, 2026
8dc54db
Accept projectId and notebook context instead of rejecting the chat
cgivre Jul 15, 2026
6ffcb06
Add implementation plan for Prospector project context
cgivre Jul 15, 2026
ccef3c6
Render the active project's metadata for the AI system prompt
cgivre Jul 15, 2026
319f61d
Inject the active project's context into the Prospector prompt
cgivre Jul 15, 2026
aed4648
Add positive-path test proving project context reaches the system prompt
cgivre Jul 15, 2026
075b96a
Add a get_project_docs tool for on-demand project documentation
cgivre Jul 15, 2026
f29ef25
Tighten get_project_docs no-active-project test assertion
cgivre Jul 15, 2026
65f6a88
Carry notebook context to the model and honour sendDataToAi in tools
cgivre Jul 15, 2026
75a1d4b
Give global Prospector chat the active project from the route
cgivre Jul 15, 2026
09076a2
Document Prospector's project context and get_project_docs
cgivre Jul 15, 2026
e82e755
Authorize project context injected into the Prospector system prompt
cgivre Jul 15, 2026
e384390
Read sendDataToAi from the server in useProspector so no caller can f…
cgivre Jul 15, 2026
96e81b8
Pin sendDataToAi fail-closed behavior with a shared hook and test
cgivre Jul 15, 2026
43ff4de
Fix prospector bugs
cgivre Jul 15, 2026
601cdc8
Bug fix
cgivre Jul 16, 2026
edeaa12
Fix unit test
cgivre Jul 16, 2026
8b5de88
Fix minor error
cgivre Jul 16, 2026
0935096
Add design spec for saving queries as views and materialized views
cgivre Jul 15, 2026
cb89536
Correct view schema eligibility to a dedicated view-targets endpoint
cgivre Jul 16, 2026
d0d497c
Add implementation plan for saving queries as views
cgivre Jul 16, 2026
1e1d0e6
Test the view logic instead of relying on manual checks
cgivre Jul 16, 2026
ea3a1f7
Add view-targets endpoint listing schemas that can hold a view
cgivre Jul 16, 2026
8304e2a
Add pure SQL helpers for building view DDL
cgivre Jul 16, 2026
e292fc9
Add view target API and widen table and dataset type unions
cgivre Jul 16, 2026
15836f1
Add view and materialized view modes to the save dialog
cgivre Jul 16, 2026
c299cfb
Guard SaveQueryDialog against premature view saves and stale mode
cgivre Jul 16, 2026
580dcf4
Fix vacuous Bug 1 test in SaveQueryDialog to actually exercise the vi…
cgivre Jul 16, 2026
191c40e
Create views and materialized views from the save dialog
cgivre Jul 16, 2026
ff54aa9
Give views and materialized views distinct icons in the schema tree
cgivre Jul 17, 2026
9b3857c
Reload the schema tree after creating a view
cgivre Jul 17, 2026
606885b
Recognize view and materialized_view datasets in project schema filte…
cgivre Jul 17, 2026
aef22be
Add regression test for view/materialized_view in dataset allow list
cgivre Jul 17, 2026
465b781
Fix flaky SaveQueryDialog test that timed out under CI load
cgivre Jul 17, 2026
c382d15
Extend BaseTest in TestViewTargets
cgivre Jul 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
64 changes: 64 additions & 0 deletions .github/workflows/sqllab-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: SQL Lab Frontend CI

on:
push:
paths:
- 'exec/java-exec/src/main/resources/webapp/**'
pull_request:
paths:
- 'exec/java-exec/src/main/resources/webapp/**'

defaults:
run:
working-directory: exec/java-exec/src/main/resources/webapp

jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: exec/java-exec/src/main/resources/webapp/package-lock.json

- name: Install dependencies
run: npm ci

- name: TypeScript type check
run: npx tsc --noEmit

- name: Lint
run: npm run lint

- name: Run tests
run: npx vitest run --passWithNoTests

- name: Build
run: npm run build
29 changes: 28 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,31 @@ target/
tools/venv/
venv/
.vscode/*
exec/java-exec/src/main/resources/webapp/
/exec/java-exec/src/main/resources/python/.venv/
__pycache__/
*.pyc
.pytest_cache/
.coverage

# Frontend (webapp)
node_modules/
.vite/
.env
.env.local
.env.*.local
*.swo
Thumbs.db
coverage/
/exec/java-exec/src/main/resources/webapp/dist/
/exec/java-exec/src/main/resources/webapp/node/
result-cache/

# Large GeoJSON files (for local development only, not committed to git)
# Exception: us-zipcodes.topojson (merged all-states, 91 MB) is committed to git
# Individual state files (us-al-zipcodes.json, us-ca-zipcodes.json, etc.) are git-ignored
# These can be regenerated locally using scripts/process-zipcodes.py
/exec/java-exec/src/main/resources/webapp/public/geojson/us-*-zipcodes.json
/exec/java-exec/src/main/resources/webapp/public/geojson/us-zipcodes.json
!/exec/java-exec/src/main/resources/webapp/public/geojson/us-zipcodes.topojson
/exec/java-exec/src/main/resources/webapp/public/geojson/*.zip
/exec/java-exec/src/main/resources/webapp/public/geojson/cb_*
68 changes: 68 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Apache Drill — Claude / AI assistant guide

Apache Drill is a schema-free SQL query engine for Hadoop, NoSQL, and cloud storage. This file is the entry point for AI coding assistants working in this repo: it points you to where the docs live, calls out hard constraints, and lists must-run commands.

## Where the docs live

All developer documentation is under [`docs/dev/`](docs/dev/). Start with [`docs/dev/DevDocs.md`](docs/dev/DevDocs.md) for the broader index.

| Topic | Doc |
|---|---|
| **Web UI (React SPA)** — architecture, routing, sidebar, contexts, page-by-page reference | [`docs/dev/ui/README.md`](docs/dev/ui/README.md) |
| **Login / authentication refactor** — design notes, current auth model, options | [`docs/dev/LoginRefactor.md`](docs/dev/LoginRefactor.md) |
| Prospector AI assistant — backend | [`docs/dev/PROSPECTOR.md`](docs/dev/PROSPECTOR.md) |
| Enterprise AI provider configuration — proxy, SSL/TLS, custom headers, static parameters | [`docs/dev/ai/ENTERPRISE_PROVIDERS.md`](docs/dev/ai/ENTERPRISE_PROVIDERS.md) |
| SQL transpiler (GraalPy + sqlglot) | [`docs/dev/TRANSPILER.md`](docs/dev/TRANSPILER.md) |
| AI features overview | [`docs/dev/AI_FEATURES.md`](docs/dev/AI_FEATURES.md) |
| Dev environment setup | [`docs/dev/Environment.md`](docs/dev/Environment.md) |
| Testing | [`docs/dev/Testing.md`](docs/dev/Testing.md) |
| Maven build | [`docs/dev/Maven.md`](docs/dev/Maven.md) |
| Jetty 12 migration notes | [`docs/dev/Jetty12Migration.md`](docs/dev/Jetty12Migration.md) |
| License headers | [`docs/dev/LicenseHeadersAndNotices.md`](docs/dev/LicenseHeadersAndNotices.md) |

If you write new documentation, place it in [`docs/dev/`](docs/dev/), not in source directories. Update this table and the relevant index file.

## Hard constraints

These are easy to get wrong and break the build.

### Checkstyle

After modifying anything in `exec/java-exec`, run:

```bash
mvn checkstyle:check -pl exec/java-exec
```

Common failures: `if` statements without braces, unused imports, missing Apache license headers on new files.

### `jdbc-all` jar size limit

The shaded JDBC driver (`exec/jdbc-all`) has a size limit enforced by `maven-enforcer-plugin` (~62 MB).

If you add large resources to `exec/java-exec` (anything in `src/main/resources/webapp/`, large fonts, model files, etc.), update the exclusion filters in [`exec/jdbc-all/pom.xml`](exec/jdbc-all/pom.xml) under the `maven-shade-plugin` configuration. The `webapp/**` filter is already present.

### License headers

Every source file (Java, TypeScript, TSX, JavaScript, CSS, HTML) must have an Apache 2.0 license header. See [`docs/dev/LicenseHeadersAndNotices.md`](docs/dev/LicenseHeadersAndNotices.md).

## UI workflow

The web UI is a React SPA at `exec/java-exec/src/main/resources/webapp/`. Build, dev server, conventions, and per-page reference are all in [`docs/dev/ui/`](docs/dev/ui/README.md).

Quick reference:

```bash
# Production build (run from repo root via Maven, or directly):
cd exec/java-exec/src/main/resources/webapp && npm install && npm run build

# Dev server (with HMR; proxies API calls to a running Drillbit on :8047):
cd exec/java-exec/src/main/resources/webapp && npm run dev
```

When adding or substantially modifying a UI page, update its doc under [`docs/dev/ui/pages/`](docs/dev/ui/pages/) in the same PR. See [`docs/dev/ui/README.md`](docs/dev/ui/README.md) for conventions.

## Git conventions

- Do **not** add Claude as a co-author on commits.
- Commits should be descriptive in the imperative ("Add cluster page", not "Added cluster page").
92 changes: 92 additions & 0 deletions LINTER_RESULTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Code Quality & Linter Results
**Date**: 2026-04-06
**Branch**: feature/sqllab-react-ui

## Frontend (React/TypeScript) - `/src/main/resources/webapp`

### ✅ ESLint
```
npm run lint
```
**Status**: ✅ PASSED (0 warnings, 0 errors)
- Configuration: ESLint 8.56.0 with TypeScript support
- Plugins: @typescript-eslint, react-hooks
- Settings: max-warnings=0 (strict mode)
- Extensions checked: ts, tsx

### ✅ TypeScript Type Checking
```
npx tsc --noEmit
```
**Status**: ✅ PASSED (0 errors)
- Version: 5.3.3
- All source files in `src/` directory compile without type errors
- Strict mode enabled

### ✅ Production Build
```
npm run build
```
**Status**: ✅ PASSED
- Build time: 23.33s
- Vite 5.4.21
- No compilation errors
- All modules transform successfully
- Output: Ready for production deployment

---

## Backend (Java) - Drill Project Root

### ✅ Maven Checkstyle
```
mvn checkstyle:check -DskipTests
```
**Status**: ✅ PASSED (0 violations across all 59 modules)

**Modules Checked**:
- Drill Core (protocol, common, logical plan)
- Drill Exec (Java execution engine, memory, RPC, vectors)
- All 50+ contrib modules:
- Storage: JDBC, MongoDB, HBase, Cassandra, Elasticsearch, Splunk, GoogleSheets, Phoenix, Druid, Kudu, HTTP, Kafka, Hive, etc.
- Formats: XML, Syslog, Httpd/Nginx Logs, PDF, HDF5, SPSS, SAS, LTSV, Image, Pcap-NG, Esri, Excel, MS Access, Log Regex, Iceberg, Paimon, Delta Lake
- Utilities, UDFs, Packaging
- Metadata (Iceberg, Mongo, RDBMS)
- JDBC Driver
- On-YARN
- Distribution Assembly

**Build Time**: 7.857s

### ✅ Maven Clean Build
```
mvn clean
```
**Status**: ✅ PASSED (59/59 modules)

---

## Summary

| Tool | Status | Details |
|------|--------|---------|
| ESLint | ✅ PASS | 0 warnings, 0 errors (strict mode) |
| TypeScript | ✅ PASS | 0 type errors |
| Vite Build | ✅ PASS | Production ready |
| Maven Checkstyle | ✅ PASS | 0 violations in 59 modules |

### Code Quality Metrics
- **Frontend**: Fully type-safe, no linting issues
- **Backend**: All code follows Checkstyle guidelines (Google Java Style Guide)
- **Overall**: Production-ready code quality

---

## Recent Changes Verified
All recent changes related to tab selection UX and close tab improvements have passed linting:
- ✅ `src/pages/SqlLabPage.tsx` - Tab selection and close handler logic
- ✅ `src/hooks/useTabPersistence.ts` - Tab persistence with empty tab filtering
- ✅ `src/components/schema-explorer/SchemaExplorer.tsx` - Query navigator integration
- ✅ `src/components/schema-explorer/QueryNavigator.tsx` - Query selection UI

All changes are clean, type-safe, and follow project conventions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4. Force Directed Graph Visualization
53 changes: 53 additions & 0 deletions build-frontend.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Build the SQL Lab frontend and update the distribution.
# Usage: ./build-frontend.sh

set -e

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
WEBAPP_DIR="$SCRIPT_DIR/exec/java-exec/src/main/resources/webapp"
DIST_BASE="$SCRIPT_DIR/distribution/target"

echo "=== Building SQL Lab frontend ==="
cd "$WEBAPP_DIR"
npm run build

echo ""
echo "=== Building java-exec module ==="
cd "$SCRIPT_DIR"
mvn package -pl exec/java-exec -DskipTests -Dcheckstyle.skip=true -q

# Find the distribution directory and copy the jar
DIST_DIR=$(find "$DIST_BASE" -name "jars" -type d 2>/dev/null | head -1)
if [ -n "$DIST_DIR" ]; then
echo ""
echo "=== Copying jar to distribution ==="
cp "$SCRIPT_DIR/exec/java-exec/target/drill-java-exec-"*"-SNAPSHOT.jar" "$DIST_DIR/"
echo "Updated: $DIST_DIR/"
else
echo ""
echo "WARNING: Distribution directory not found under $DIST_BASE"
echo "Run a full 'mvn package' first to create the distribution, or copy the jar manually:"
echo " cp exec/java-exec/target/drill-java-exec-*-SNAPSHOT.jar <drill-distribution>/jars/"
fi

echo ""
echo "=== Done! Restart Drill and hard-refresh your browser (Cmd+Shift+R) ==="
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ public List<String> extensions() {
return this.extensions;
}

/**
* Standard getter for extensions, consistent with other FormatPluginConfig implementations.
*/
public List<String> getExtensions() {
return this.extensions;
}

public boolean combinePages() {
return this.combinePages;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ public void close() {

/**
* This function processes the XML elements. This function stops reading when the
* limit (if any) which came from the query has been reached or the Iterator runs out of
* elements.
* limit (if any) which came from the query has been reached, a complete row has been
* read, or the Iterator runs out of elements.
* @return True if there are more elements to parse, false if not
*/
private boolean processElements() {
Expand Down Expand Up @@ -197,6 +197,13 @@ private boolean processElements() {

// Process the event
processEvent(currentEvent, lastEvent, reader.peek());

// After completing a row, return to let next() check batch capacity.
// This prevents batch overflow errors that occur when rows accumulate
// beyond what the batch can hold without the isFull() check running.
if (currentState == xmlState.ROW_ENDED) {
return true;
}
} catch (XMLStreamException e) {
throw UserException
.dataReadError(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.testcontainers.DockerClientFactory;
import org.testcontainers.containers.CassandraContainer;

@Category(SlowTest.class)
Expand All @@ -42,6 +43,10 @@ public class TestCassandraSuite extends BaseTest {

@BeforeClass
public static void initCassandra() {
org.junit.Assume.assumeTrue(
"Docker is not available, skipping container tests",
DockerClientFactory.instance().isDockerAvailable()
);
synchronized (TestCassandraSuite.class) {
if (initCount.get() == 0) {
startCassandra();
Expand Down
Loading
Loading