Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
3783807
DRILL-8556: Add protocol decoders to the PCAP and PCAP-NG readers
cgivre Oct 21, 2026
9359abe
Add the React SQL Lab UI, Prospector AI assistant, projects and workf…
cgivre Oct 21, 2026
a532f54
Give ownerless migrated workflows an owner and show how to fix owner …
cgivre Oct 21, 2026
32414ec
Show Renew for paused workflows past their expiry date
cgivre Oct 21, 2026
f9761d0
Fix SQL Lab lint errors in the Prospector test wrapper and emoji regex
cgivre Oct 21, 2026
7d8293f
Add Prospector Conversations design and implementation plan
cgivre Nov 8, 2026
7c80e1a
Ignore the .worktrees directory
cgivre Nov 8, 2026
c6b5e88
Add project-scoped conversation store
cgivre Nov 8, 2026
dcf9be0
Add project-scoped conversation REST endpoints
cgivre Nov 8, 2026
893db27
Add non-bumping updateMetadata to ConversationStore for rename
cgivre Nov 8, 2026
9a1c031
Add per-user Scratch project for conversations outside a project
cgivre Nov 8, 2026
0dd99ee
Add conversation API client
cgivre Nov 8, 2026
9b1fbb2
Make the server the source of truth for Prospector conversations
cgivre Nov 8, 2026
afdba89
Stop Prospector conversation writes from losing or overwriting turns
cgivre Nov 8, 2026
832f501
Keep unanswered tool calls out of persisted and sent Prospector history
cgivre Nov 8, 2026
a9c94b5
Strip unanswered tool calls from every Prospector conversation write
cgivre Nov 8, 2026
af61f06
Add the Conversations page and make it the project landing tab
cgivre Nov 8, 2026
0e5fcc4
Make Conversations the real project landing and manage conversations …
cgivre Nov 8, 2026
3527509
Add the conversation canvas host and results viewer
cgivre Nov 8, 2026
9c89b6a
Make the canvas full screen an accessible dialog and hide Analyze act…
cgivre Nov 8, 2026
2203562
Keep antd popup containers usable when the canvas goes full screen
cgivre Nov 8, 2026
2f30ded
Render project artifacts on the conversation canvas
cgivre Nov 8, 2026
faa5c2a
Show a data source the server no longer knows as deleted
cgivre Nov 8, 2026
20cbb53
Add artifact cards with canvas auto-follow and pinning
cgivre Nov 8, 2026
e6e0b8a
Let a pin hold the canvas view and catch up to the turn's artifact on…
cgivre Nov 8, 2026
8d3451a
Replace save_report with a general write_wiki_page tool
cgivre Nov 8, 2026
90d7383
Send the retired save_report tool name as write_wiki_page and validat…
cgivre Nov 8, 2026
b6859b8
Add create_workflow with an explicit activation confirmation
cgivre Nov 8, 2026
fa428b1
Make create_workflow guidance true on every surface and harden the ac…
cgivre Nov 8, 2026
482bcab
Add conversation mode to the Prospector system prompt and drop the no…
cgivre Nov 8, 2026
691bf14
Pin the conversation prompt's scoping sentences and correct its card …
cgivre Nov 8, 2026
a7afecd
Let the conversation prompt defer to a do-not-retry in a create_workf…
cgivre Nov 8, 2026
2cb2951
Send global SQL Lab and Logs into a Scratch project conversation
cgivre Nov 8, 2026
99d2244
Carry in-page context into a new Scratch conversation from SQL Lab an…
cgivre Nov 8, 2026
1a990b8
Remove the Prospector dock and tab-scoped conversations
cgivre Nov 8, 2026
9d35ee0
Correct the conversation prompt's save_query rationale and clear stal…
cgivre Nov 8, 2026
080931c
Document the Conversations canvas and workflow activation, and correc…
cgivre Nov 8, 2026
16c990b
Cascade conversation deletion on project purge and correct Prospector…
cgivre Nov 8, 2026
a9c3bd7
Correct the paused-workflow safety claim in the remaining docs and th…
cgivre Nov 8, 2026
d67a3d0
Say a paused workflow is off its schedule, not that it cannot run
cgivre Nov 8, 2026
c062163
Gate conversations on project access and delete messages before the r…
cgivre Nov 8, 2026
b3d1f1c
Remove a deleted conversation's offline buffer and correct the paused…
cgivre Nov 8, 2026
2f47dcf
Give the Conversations page a narrow-viewport layout
cgivre Nov 8, 2026
9ea2452
Hand card clicks to the artifact page when the layout hides the canvas
cgivre Nov 8, 2026
922b7f0
Raise the jdbc-all jar size limit to 68 MB
cgivre Nov 8, 2026
766307d
Let the conversation canvas be resized and fix the chart canvas query
cgivre Nov 8, 2026
66667b9
Keep canvas dashboard charts inside their cards and drop degenerate g…
cgivre Nov 8, 2026
44209af
Read JDBC credentials from wherever the plugin stores them
cgivre Nov 9, 2026
ecbf48e
Test connections with the credentials a plugin stores directly
cgivre Nov 9, 2026
c430766
Read JDBC timestamps as UTC so daylight saving gaps load
cgivre Nov 9, 2026
d473899
Give every dashboard panel an id
cgivre Nov 9, 2026
7f8b2ad
Document that a dashboard panel needs an id to render
cgivre Nov 9, 2026
f3373dc
Make a generated dashboard explain itself and be editable
cgivre Nov 9, 2026
605f65f
Show a dashboard beside the chat as a contact sheet
cgivre Nov 9, 2026
a1024d0
Let Prospector change a dashboard it already built
cgivre Nov 9, 2026
54de407
Lay out Prospector tool calls instead of dumping JSON
cgivre Nov 9, 2026
1d4fa2c
Add design for uploading files into a project
cgivre Nov 10, 2026
8caf924
Add implementation plan for file uploads
cgivre Nov 10, 2026
ad1b392
Add editor and viewer roles to projects
cgivre Nov 10, 2026
7f374e4
Keep project delete, restore and sharing changes owner-only
cgivre Nov 10, 2026
afab9c8
Make project purge owner-only and test destructive endpoints
cgivre Nov 10, 2026
92e4a1e
Add a cluster-wide upload target setting
cgivre Nov 10, 2026
87dc100
Tolerate unknown fields in the upload config and cover its error paths
cgivre Nov 10, 2026
40a2b04
Add an endpoint for uploading a file into a project
cgivre Nov 10, 2026
755c85b
Stage uploads before renaming and bound them from the request header
cgivre Nov 10, 2026
d4db326
Keep the staged upload when the move onto the target fails
cgivre Nov 10, 2026
6df0763
Let a project delete and download its uploaded files
cgivre Nov 10, 2026
ea4f5a8
Share one traversal guard and open downloads lazily
cgivre Nov 10, 2026
148316b
Add a folder dataset type so a project sees only its own uploads
cgivre Nov 10, 2026
1a25a72
List every file in the uploads workspace
cgivre Nov 10, 2026
873606c
Scan uploaded files into the project schema cache
cgivre Nov 10, 2026
0540837
Merge one uploaded file into the schema cache instead of rescanning t…
cgivre Nov 10, 2026
33ca55d
Mark a schema truncated when a scan is cut short, and scan each folde…
cgivre Nov 10, 2026
79bfa0c
Add the upload target setting to the admin data sources page
cgivre Nov 10, 2026
107fd33
Test the upload client and use antd controls in the upload target card
cgivre Nov 10, 2026
f363ced
Carry a machine-readable code on upload 409s and throw typed errors f…
cgivre Nov 10, 2026
f95e9c5
Let a file be dropped anywhere in a project
cgivre Nov 10, 2026
684a2df
Move the upload hook to hooks, keep the drop message in view, and sho…
cgivre Nov 10, 2026
03f27d6
Let a file be dropped into a Prospector conversation
cgivre Nov 10, 2026
6196069
Let a composer drop bubble to the project drop zone and announce a mu…
cgivre Nov 10, 2026
968a9ee
Add Delete and Download to uploaded files in the schema tree
cgivre Nov 10, 2026
d6918ef
Hide Delete and Download on nested files, cover the cache wiring and …
cgivre Nov 10, 2026
531f316
Document file uploads
cgivre Nov 10, 2026
8e4ff6f
Correct file upload docs: probe timeouts, viewers, status codes
cgivre Nov 10, 2026
5ce3fca
Fix the file-upload review findings
cgivre Nov 10, 2026
a2ad2de
Accept an upload workspace at the storage root
cgivre Nov 10, 2026
2c24ce2
Test a JDBC data source as it is configured, not as the form models it
cgivre Nov 10, 2026
6ee9c97
Document the SQL Lab notebook
cgivre Nov 12, 2026
44b3f5f
Add the Prospector scripts and models design
cgivre Nov 13, 2026
ff3aa20
Write up version control for Prospector scripts as deferred work
cgivre Nov 13, 2026
92f0dae
Add the Group A implementation plan
cgivre Nov 13, 2026
fcd17e8
Add a summarization seam to workflow services
cgivre Nov 13, 2026
e1454d0
Test and harden the workflow summarization seam
cgivre Nov 13, 2026
0f716a2
Add an AI summary workflow action
cgivre Nov 13, 2026
db7c1da
Close the template path around the AI summary data-sharing gate
cgivre Nov 13, 2026
8b8a7d6
Add a machine learning contrib module with PMML model loading
cgivre Nov 13, 2026
8785219
Confine model paths to their workspace and tighten model location checks
cgivre Nov 13, 2026
4246b23
Add a predict function for PMML models
cgivre Nov 13, 2026
634056c
Test predict across rows and tighten the missing model assertion
cgivre Nov 13, 2026
3e0380a
Ship the machine learning module and document it
cgivre Nov 13, 2026
b0e8ac2
Harden PMML model loading and score rows with missing values
cgivre Nov 13, 2026
6be8c19
Record the ai_summary provider call in AI analytics
cgivre Nov 13, 2026
2750551
Let Prospector build an ai_summary action
cgivre Nov 13, 2026
7dfc440
Document the model-file guarantees and the ai_summary action
cgivre Nov 13, 2026
7a20437
Add a pmml format plugin that reads a model file as its metadata
cgivre Nov 13, 2026
6f04448
Make the project, conversation store and credentials tests extend Bas…
cgivre Nov 13, 2026
a3c53a2
Skip the Elasticsearch tests cleanly when Docker is unavailable
cgivre Nov 13, 2026
6843044
Give the frontend tests long enough to find what they are waiting for
cgivre Nov 13, 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
  •  
  •  
  •  
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:
*) echo "::error::Unknown shard '${{ matrix.shard }}'; expected 1, 2 or 3"; exit 1 ;;
esac

# -DskipFrontend: no Java test uses webapp/dist, and building it here would
# download Node and run npm ci once per matrix entry. The SQL Lab frontend is
# built, type-checked, linted and tested by the sqllab-frontend workflow.
#
# -DforkCount=2: several of the slowest classes are wall-clock bound rather than
# CPU bound — TestTimedCallable spends 105 seconds asleep, and the RPC, SSL and
# graceful-shutdown tests wait on timeouts — so a second fork overlaps that idle
Expand All @@ -94,7 +98,7 @@ jobs:
- name: Build and test
run: |
mvn -P${{ matrix.profile }} install --batch-mode --no-transfer-progress \
-DforkCount=2 \
-DskipFrontend=true -DforkCount=2 \
-Dsurefire.failIfNoSpecifiedTests=false \
-Dtest='${{ steps.shard.outputs.pattern }}' \
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
Expand Down Expand Up @@ -142,7 +146,7 @@ jobs:
# Builds Drill project, performs license checkstyle goal and regenerates java and C++ protobuf files
- name: Build
run: |
MAVEN_OPTS="-Xms1G -Xmx1G" mvn install -Drat.skip=false -Dlicense.skip=false --batch-mode --no-transfer-progress -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true && \
MAVEN_OPTS="-Xms1G -Xmx1G" mvn install -Drat.skip=false -Dlicense.skip=false --batch-mode --no-transfer-progress -DskipFrontend=true -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true && \
pushd protocol && mvn process-sources -P proto-compile && popd && \
mkdir contrib/native/client/build && pushd contrib/native/client/build && cmake -G "Unix Makefiles" .. && make cpProtobufs && popd; \
# Checks whether project files weren't changed after regenerating protobufs
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/sqllab-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#
# 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

# No separate type-check step: "npm run build" is "tsc && vite build", so the
# build below already fails on a type error.
- name: Lint
run: npm run lint

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

- name: Build
run: npm run build
35 changes: 34 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,37 @@ 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_*

# Superpowers brainstorming scratch
.superpowers/

# Git worktrees
.worktrees/
77 changes: 77 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 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) |
| **Tab persistence & project tree** — server-side tabs, hide vs delete | [`docs/dev/TabPersistence.md`](docs/dev/TabPersistence.md) |
| **Conversations page** — project-scoped Prospector conversations, canvas, artifact cards, seeded conversations | [`docs/dev/ui/pages/conversations.md`](docs/dev/ui/pages/conversations.md) |
| **Geospatial filter builder** — draw shapes on a map, push into SQL as ST_ predicates | [`docs/dev/GeoFilterBuilder.md`](docs/dev/GeoFilterBuilder.md) |
| **Prospector reports** — generated reports saved to a project wiki, PDF download | [`docs/dev/ProspectorReports.md`](docs/dev/ProspectorReports.md) |
| **File uploads** — drag a file into a project and query it; upload target, project role model, staged writes, schema cache | [`docs/dev/FileUploads.md`](docs/dev/FileUploads.md) |
| **Notebooks** — Python in the browser (Pyodide) in SQL Lab, DataFrame injection, export back to Drill | [`docs/dev/Notebooks.md`](docs/dev/Notebooks.md) |
| **Machine learning** — `predict()` over PMML models, training with nyoka, the `ai_summary` workflow action | [`docs/dev/MachineLearning.md`](docs/dev/MachineLearning.md) |
| **Workflows** — scheduled queries with action pipelines, conditions, run log | [`docs/dev/WORKFLOWS.md`](docs/dev/WORKFLOWS.md) (reference), [`docs/dev/WorkflowsGuide.md`](docs/dev/WorkflowsGuide.md) (user and admin guide) |
| Prospector AI assistant — backend | [`docs/dev/PROSPECTOR.md`](docs/dev/PROSPECTOR.md) |
| **PCAP protocol decoders** — parsed_protocol / parsed_data / decode_error, writing a decoder | [`docs/dev/PcapProtocolDecoders.md`](docs/dev/PcapProtocolDecoders.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` (68 MB, set by `jdbc-all-jar.maxsize` in [`exec/jdbc-all/pom.xml`](exec/jdbc-all/pom.xml)). Check it with `mvn verify -pl exec/jdbc-all` — `mvn enforcer:enforce` does **not** run this rule.

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) ==="
Loading
Loading