Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
1c6b2e9
Add validation for duplicate workspace names
cgivre Feb 11, 2026
47331d8
Fix workspace initialization on first mount
cgivre Feb 11, 2026
c7aebd2
More improvements
cgivre Feb 12, 2026
8698c5c
Implement column menus for ResultsGrid with comprehensive feature set
cgivre Feb 12, 2026
b6b528a
Various improvements
cgivre Feb 12, 2026
994df45
Dark mode:
cgivre Feb 12, 2026
62a2aa5
Minor bug fix
cgivre Feb 12, 2026
40295df
Fix state
cgivre Feb 13, 2026
15c39d8
Fix Vault Unit Tests
cgivre Feb 13, 2026
830b5d2
Fix Docker based unit tests
cgivre Feb 13, 2026
2a91711
Visualization improvements
cgivre Feb 13, 2026
6824465
Link fix
cgivre Feb 13, 2026
86b1543
Various fixes
cgivre Feb 18, 2026
8a30790
Fixing time grain issues
cgivre Feb 18, 2026
def58eb
WIP Time Grain
cgivre Feb 18, 2026
bd6dd23
Time grain working
cgivre Feb 18, 2026
14286fd
Filter improvements and hardening.
cgivre Feb 19, 2026
92f09f0
Refactor SQL generator to use Java port of SQL Glot
cgivre Feb 23, 2026
e024e78
Fix checkstyles
cgivre Feb 23, 2026
715ec1a
Add trendlines
cgivre Feb 25, 2026
9779d50
Profile page improvements
cgivre Feb 26, 2026
4f13d0d
Implement Profile Detail Page — Dashboard-style redesign with AI advisor
cgivre Feb 26, 2026
b71c2c0
Improve Profile Detail Page layout: add query display and evenly-spac…
cgivre Feb 26, 2026
464283a
Fix AI advisor context serialization error
cgivre Feb 26, 2026
9a0fbe6
Add credential redaction to prevent sensitive data exposure to AI
cgivre Feb 26, 2026
73def2d
Improve CSRF token handling for hosted deployments
cgivre Feb 26, 2026
f9a3bfa
Revert "Improve CSRF token handling for hosted deployments"
cgivre Feb 26, 2026
222d934
Added new visualizations
cgivre Mar 2, 2026
89acc2e
Fix streaming UI bug
cgivre Mar 2, 2026
5bcfc4a
WIP
cgivre Mar 6, 2026
4c25361
Size improvements
cgivre Mar 6, 2026
3a9fc4f
UI Improvements
cgivre Mar 8, 2026
d976f1f
More data sources
cgivre Mar 9, 2026
333da6c
More data sources
cgivre Mar 9, 2026
806b9bf
Schema tree fixes
cgivre Mar 9, 2026
7f8fe60
Fix Metrics and Profiles Pages
cgivre Mar 10, 2026
d77eee0
Schema tree fixes
cgivre Mar 11, 2026
8ae76ac
Updated gitignore
cgivre Mar 11, 2026
28fdf8b
Fix CodeQL issues
cgivre Mar 11, 2026
ffd4b66
Add backend result cache service with security hardening
cgivre Mar 12, 2026
79abeda
Add frontend memory optimization with LRU cache and backend integration
cgivre Mar 12, 2026
d61f8fa
Add server-side pagination for large result sets
cgivre Mar 12, 2026
be84230
Remove unused act import from useServerPagination test
cgivre Mar 12, 2026
abaf68c
Fix CodeQL
cgivre Mar 12, 2026
d6c72e2
Fix build errors
cgivre Mar 12, 2026
bad9298
PDF Fix
cgivre Mar 12, 2026
4b4b428
Various updates
cgivre Mar 12, 2026
5c03b35
Added sys project
cgivre Mar 12, 2026
70ddef1
Fix unit tests
cgivre Mar 13, 2026
443a31c
Fix CodeQL issues
cgivre Mar 13, 2026
ecd2e12
Various AI improvements
cgivre Mar 16, 2026
294a00f
Various fixes
cgivre Mar 17, 2026
21f7e06
Project refinements
cgivre Mar 18, 2026
27b3eb4
Fix Checkstyle
cgivre Mar 18, 2026
258324c
Fix schema search
cgivre Mar 18, 2026
178b03c
Fix query tab
cgivre Mar 18, 2026
ff25f21
Scheduler in progress
cgivre Mar 19, 2026
8e54636
Scheduler improvements
cgivre Mar 20, 2026
008c55d
Various fixes
cgivre Mar 22, 2026
fc4b6aa
Improve SqlLab layout and AI suggestions
cgivre Mar 23, 2026
380b863
Fix: Add backtick escaping to INFORMATION_SCHEMA.COLUMNS query
cgivre Mar 24, 2026
3911aa1
Fix: Add missing backticks to INFORMATION_SCHEMA.COLUMNS and simplify…
cgivre Mar 24, 2026
4e5bdca
Fix: Extract fetchColumnsForTable private helper to fix getSchemaTree
cgivre Mar 24, 2026
be7d7ff
Fix: Use fresh WebUserConnection for each metadata query
cgivre Mar 24, 2026
adcb6c1
Fix: Correct WebUserConnection constructor call
cgivre Mar 24, 2026
ed68777
Refactor: Add boolean parameter to executeQuery for connection reuse …
cgivre Mar 24, 2026
9423545
Improve AI Query Suggestions: format, name tabs, remove panel expansion
cgivre Mar 24, 2026
49b1798
Fix: Remove unused Space import from QuerySuggestions
cgivre Mar 24, 2026
28697c9
Fix: Change allValidTables from let to const
cgivre Mar 24, 2026
f86f1aa
Fix: Pass suggestion title to parent component in AiAssistantModal
cgivre Mar 24, 2026
6b2b2cb
Implement hierarchical geographic map support with lazy-loading
cgivre Mar 24, 2026
50946f7
Update TODO: mark Choropleth Maps as complete
cgivre Mar 24, 2026
87603c9
Fix project data loading: load saved queries and improve cache handling
cgivre Mar 24, 2026
6763e73
Add US ZIP Code geographic map support
cgivre Mar 24, 2026
a9b1d8e
Clean up: remove Python download scripts, fix linting
cgivre Mar 24, 2026
a32bfe0
Fix: replace dynamic import with static import in SqlLabPage
cgivre Mar 24, 2026
c6e461a
Remove broken us-zipcodes placeholder
cgivre Mar 24, 2026
24b9219
Add US ZIP Code support with DC data + full US instructions
cgivre Mar 24, 2026
a3d2361
Add .gitignore for large GeoJSON files + setup script
cgivre Mar 24, 2026
c84e812
Add debugging logs for choropleth map rendering and GeoJSON loading
cgivre Mar 24, 2026
3c17000
Add state-level ZIP code support to GeoMapRegistry and create Python …
cgivre Mar 24, 2026
3de8729
Add multi-select UI for state-level ZIP code scopes
cgivre Mar 24, 2026
9180580
Fix: Include 'US ZIP Codes (by State)' group in GEO_SCOPE_OPTIONS
cgivre Mar 24, 2026
99e2199
Add merged US ZIP codes GeoJSON (4,388 ZIP codes from 14 states)
cgivre Mar 25, 2026
e50ab7c
Improve ZIP code download: minification + 5-minute timeout
cgivre Mar 25, 2026
711de0a
Add polygon simplification to reduce file sizes by 67%
cgivre Mar 25, 2026
9053934
Optimize ZIP code performance: use state-specific files instead of me…
cgivre Mar 25, 2026
d79c6eb
Replace NaN with 0 in choropleth visualization data
cgivre Mar 25, 2026
0510ea1
Convert us-zipcodes from GeoJSON to TopoJSON for 76% size reduction
cgivre Mar 25, 2026
bde7d6a
Add @types/topojson-client for TypeScript support
cgivre Mar 25, 2026
cc76d80
Fix ESLint errors: remove self-assignments and any type annotation
cgivre Mar 25, 2026
bbc3364
Add Apache License headers to scripts and data files
cgivre Mar 25, 2026
200a47d
Implement choropleth zoom and center configuration
cgivre Mar 25, 2026
ac38988
Allow capturing choropleth map view from interactive preview
cgivre Mar 25, 2026
225c561
Add 'Manage Data Sources' to admin menu
cgivre Mar 25, 2026
277fcd1
Fix ref type annotations in map capture feature
cgivre Mar 25, 2026
88adc04
Fix route parameter collision between project and dashboard IDs
cgivre Mar 25, 2026
249e2aa
Fix: prevent first saved query from loading into new tabs
cgivre Mar 25, 2026
afdf348
Fix: preserve lock state and visualization IDs when duplicating tabs
cgivre Mar 25, 2026
387baab
Initialize lock and viz fields for new tabs
cgivre Mar 25, 2026
2f75e31
Add sort direction controls to metric and categorical visualizations
cgivre Mar 25, 2026
58e9273
Add number formatting, labels, and sparkline data limiting to metric …
cgivre Mar 25, 2026
b8487d3
Add currency formatting and consolidate metric visualization options …
cgivre Mar 25, 2026
85fdd11
Move Sort Direction control to appear right after Order By for bigNumber
cgivre Mar 25, 2026
9184c52
Fix AI Q&A panel data access across dashboard tabs
cgivre Mar 25, 2026
f7d7534
Include SQL queries in AI Q&A dashboard context
cgivre Mar 25, 2026
267ce28
Instruct AI to keep dashboard Q&A responses brief
cgivre Mar 25, 2026
603e32f
Make AI Q&A instruction explicit: use only dashboard data, no databas…
cgivre Mar 25, 2026
2d07961
Fix AI Q&A to use only dashboard data, add clear button
cgivre Mar 25, 2026
d096474
Fix JDBC Config
cgivre Apr 6, 2026
65fbc8f
Fix license
cgivre Apr 6, 2026
f35025f
Various fixes
cgivre Apr 10, 2026
36e7530
Enforce per-user authorization on schedule endpoints
cgivre Apr 24, 2026
3597adf
Various fixes
cgivre May 1, 2026
cac25a4
Fix linting
cgivre May 1, 2026
b371a83
Fix CommandPalette test for Spotlight rebuild
cgivre May 1, 2026
359af24
More Apple Design
cgivre May 5, 2026
f0d1c52
Add Format SQL, Add-to-dashboard, column-dep badge
cgivre May 5, 2026
f296450
Move schema browser to a dedicated left rail
cgivre May 6, 2026
be7034e
Double-click table opens a new SQL tab
cgivre May 6, 2026
966115d
More progress
cgivre May 18, 2026
63dd092
Additional Updates
cgivre Jun 10, 2026
bb273f1
Remove stale code
cgivre Jun 16, 2026
3526e19
Various minor fixes
cgivre Jun 17, 2026
c4656c9
Fix unit tests
cgivre Jun 25, 2026
ea4ae03
Add enterprise AI provider support for internal models
cgivre Jul 3, 2026
23f8f07
Complete Phase 2: Implement proxy, SSL/TLS, custom headers with compr…
cgivre Jul 3, 2026
f0ee9db
Update documentation with enterprise AI provider support
cgivre Jul 3, 2026
1834824
Fix missing assertTrue import in test files
cgivre Jul 3, 2026
124952a
Lint fixees
cgivre Jul 3, 2026
f7a090d
Fix flaky Splunk tests
cgivre Jul 9, 2026
9603727
Validate AI endpoint scheme and dedupe endpoint normalization
cgivre Jul 9, 2026
8aa2161
Wait for Splunk ansible-complete log instead of HTTP probe
cgivre Jul 10, 2026
4843209
Added OAuth for AI
cgivre Jul 10, 2026
d532287
Fix SSL issues
cgivre Jul 10, 2026
0f0241d
Connect Splunk tests over HTTPS and pin the container image
cgivre Jul 15, 2026
cc59425
Bypass the JVM global proxy for AI endpoints and accept PEM truststores
cgivre Jul 15, 2026
43979f2
Add design spec for Prospector logging and project context
cgivre Jul 15, 2026
6edd019
Add implementation plan for Prospector interaction logging
cgivre Jul 15, 2026
e29a876
Enforce AI feature tagging with the type system rather than a grep test
cgivre Jul 15, 2026
26986f7
Separate AI event construction from logging and fix success flag
cgivre Jul 15, 2026
eaf4008
Read the originating feature from ChatContext for AI analytics
cgivre Jul 15, 2026
84a6b85
Require an originating feature on every AI call
cgivre Jul 15, 2026
dc5902f
Correct AiLogsResources path and registration in the logging plan
cgivre Jul 15, 2026
c69c487
Remove client-side AI logging in favour of server events
cgivre Jul 15, 2026
de09d7a
Record AI setup failures and config-test calls
cgivre Jul 15, 2026
ea9807e
Fix AiEvent.user null regression from commit 4ce54133d
cgivre Jul 15, 2026
c73ae19
Distinguish unconfigured AI analytics from no usage
cgivre Jul 15, 2026
1b6178b
Document the AI analytics feature vocabulary
cgivre Jul 15, 2026
51325c9
Record failed AI config tests as failures, not successes
cgivre Jul 15, 2026
7cb66ee
Refresh AiEvent javadoc and cover resolveUser's empty-name branch
cgivre Jul 15, 2026
496155f
Require event log matches to be files, not directories
cgivre Jul 15, 2026
4af43bb
Label every AI feature and fix the idle-dashboard banner
cgivre Jul 15, 2026
3d8765e
Replace feature-slug source scanner with type-level enforcement
cgivre Jul 15, 2026
ad4d66f
Add AI-created visualizations to the active project
cgivre Jul 15, 2026
2574cbe
Accept projectId and notebook context instead of rejecting the chat
cgivre Jul 15, 2026
6aa3909
Add implementation plan for Prospector project context
cgivre Jul 15, 2026
4a97942
Render the active project's metadata for the AI system prompt
cgivre Jul 15, 2026
4d12114
Inject the active project's context into the Prospector prompt
cgivre Jul 15, 2026
b19f258
Add positive-path test proving project context reaches the system prompt
cgivre Jul 15, 2026
897ee45
Add a get_project_docs tool for on-demand project documentation
cgivre Jul 15, 2026
0113f06
Tighten get_project_docs no-active-project test assertion
cgivre Jul 15, 2026
8ee055e
Carry notebook context to the model and honour sendDataToAi in tools
cgivre Jul 15, 2026
9d5f97f
Give global Prospector chat the active project from the route
cgivre Jul 15, 2026
b8d2bc4
Document Prospector's project context and get_project_docs
cgivre Jul 15, 2026
9f48ef7
Authorize project context injected into the Prospector system prompt
cgivre Jul 15, 2026
d03eb53
Read sendDataToAi from the server in useProspector so no caller can f…
cgivre Jul 15, 2026
c9a1728
Pin sendDataToAi fail-closed behavior with a shared hook and test
cgivre Jul 15, 2026
c97861f
Fix prospector bugs
cgivre Jul 15, 2026
2a7f142
Bug fix
cgivre Jul 16, 2026
bd9eba9
Fix unit test
cgivre Jul 16, 2026
765588e
Fix minor error
cgivre Jul 16, 2026
114183b
Add design spec for saving queries as views and materialized views
cgivre Jul 15, 2026
6b21b0d
Correct view schema eligibility to a dedicated view-targets endpoint
cgivre Jul 16, 2026
944debd
Add implementation plan for saving queries as views
cgivre Jul 16, 2026
1fc47a2
Test the view logic instead of relying on manual checks
cgivre Jul 16, 2026
b49ec81
Add view-targets endpoint listing schemas that can hold a view
cgivre Jul 16, 2026
bef6b71
Add pure SQL helpers for building view DDL
cgivre Jul 16, 2026
4e75f1a
Add view target API and widen table and dataset type unions
cgivre Jul 16, 2026
34c0871
Add view and materialized view modes to the save dialog
cgivre Jul 16, 2026
2fc6c08
Guard SaveQueryDialog against premature view saves and stale mode
cgivre Jul 16, 2026
4200c4f
Fix vacuous Bug 1 test in SaveQueryDialog to actually exercise the vi…
cgivre Jul 16, 2026
009cc20
Create views and materialized views from the save dialog
cgivre Jul 16, 2026
4e86644
Give views and materialized views distinct icons in the schema tree
cgivre Jul 17, 2026
de0f63e
Reload the schema tree after creating a view
cgivre Jul 17, 2026
5957948
Recognize view and materialized_view datasets in project schema filte…
cgivre Jul 17, 2026
8326153
Add regression test for view/materialized_view in dataset allow list
cgivre Jul 17, 2026
9e97675
Fix flaky SaveQueryDialog test that timed out under CI load
cgivre Jul 17, 2026
716a167
Extend BaseTest in TestViewTargets
cgivre Jul 17, 2026
ef9b4bc
Add design spec for project schema cache
cgivre Jul 27, 2026
3dce853
Scope schema cache per-project for access control; add table-type scan
cgivre Jul 27, 2026
93396de
Refine schema cache to synchronous scan model (no background executor)
cgivre Jul 27, 2026
ce13476
Add implementation plan for project schema cache
cgivre Jul 27, 2026
74c5034
Add ProjectSchemaCache store and scan/read/peek logic
cgivre Jul 27, 2026
2c0e298
Fix ProjectSchemaCache staleness reset, singleton, and case handling
cgivre Jul 27, 2026
3de2250
Guard removeProject against missing keys in ProjectSchemaCache
cgivre Jul 27, 2026
acef682
Scan project schemas on dataset add; add schema-cache refresh/inspect…
cgivre Jul 27, 2026
94293c5
Serve project-scoped schema metadata from cache in MetadataResources
cgivre Jul 27, 2026
542ea0f
Inject cached project schema into Prospector system prompt
cgivre Jul 27, 2026
d260843
Cap the schema-cache block in the Prospector system prompt
cgivre Jul 27, 2026
fa6ff97
Add projectId params and schema-cache client functions to webapp API
cgivre Jul 27, 2026
d81a7a0
Pass projectId to tree and autocomplete metadata calls for cache scoping
cgivre Jul 27, 2026
d2f2134
Add schema-cache refresh button and last-scanned indicator to project…
cgivre Jul 27, 2026
d7dbee2
Document project schema cache
cgivre Jul 27, 2026
c4c9ced
Collapse divergent resolveUser and add canRead-deny cache tests
cgivre Jul 27, 2026
a7ae960
Fix minor bugs
cgivre Jul 28, 2026
03add9d
Minor fixes
cgivre Jul 28, 2026
4048fe6
Fix dashboards created in a project being orphaned and unopenable
cgivre Jul 28, 2026
bc0ab2b
Make TestSpaServletFilter extend BaseTest
cgivre Jul 30, 2026
51092ab
Fix Schema Tree
cgivre Aug 10, 2026
d94ba75
Add schema sampling for dynamic-schema tables
cgivre Aug 11, 2026
36a94a6
Apply gitignore
cgivre Aug 21, 2026
a038629
Render markdown tables in AI-facing surfaces
cgivre Aug 30, 2026
d8adcac
Restore localStorage in the jsdom test environment
cgivre Aug 30, 2026
9fe9a06
Expose SQL function signatures and descriptions to the AI assistant
cgivre Aug 30, 2026
4956cdb
Disable the Run button until the editor holds a query
cgivre Aug 30, 2026
daccada
Add tab persistence design and implementation plan
cgivre Aug 30, 2026
e1fc574
Add per-user query tab store
cgivre Aug 30, 2026
10ae922
Add REST endpoints for query tabs
cgivre Aug 30, 2026
98679cb
Add tab API client
cgivre Aug 30, 2026
7c9fc23
Use UUIDs for tab ids and migrate legacy ids
cgivre Aug 30, 2026
e3208dd
Add tab promotion rule
cgivre Aug 30, 2026
1429e76
Add tab reconciliation
cgivre Aug 30, 2026
00a2fb1
Sync promoted tabs to the server
cgivre Aug 30, 2026
d48c9de
Hide tabs on close instead of destroying them
cgivre Aug 30, 2026
bbfd752
List project tabs in the sidebar tree
cgivre Aug 30, 2026
ee22b34
Record the originating tab on a published query API
cgivre Aug 30, 2026
53a8d97
Warn about dependants before deleting a tab
cgivre Aug 30, 2026
9ef4efd
Scope Prospector conversations to the active tab
cgivre Aug 30, 2026
9f521ea
Persist Prospector conversations per tab
cgivre Aug 30, 2026
4d3afda
Document tab persistence, hide/delete and per-tab conversations
cgivre Aug 30, 2026
46ff386
Sync Prospector conversations to the server with their tab
cgivre Aug 30, 2026
f85268d
Fix tabs not appearing in the project tree
cgivre Aug 31, 2026
ab2208d
Stop the assistant rediscovering schema it already has
cgivre Aug 31, 2026
2be3ec1
Fix tab writes failing on filesystem-backed stores
cgivre Aug 31, 2026
0ef7d85
Show project tabs as a collapsible group with a count
cgivre Aug 31, 2026
e28ae02
Make tab delete and rename update the sidebar
cgivre Aug 31, 2026
53cb509
Disable tab delete when only one tab remains
cgivre Aug 31, 2026
fb10a79
Fix blank editor when every restored tab is hidden
cgivre Aug 31, 2026
247de05
Add geospatial filter builder design and plan
cgivre Aug 31, 2026
d5676c9
Rework geo filter builder as an authoring tool
cgivre Aug 31, 2026
4b60ba3
Detect coordinate columns in query results
cgivre Aug 31, 2026
6af2539
Add UTM zone selection for metric distance filters
cgivre Aug 31, 2026
d39fd03
Generate spatial filter SQL from drawn geometry
cgivre Aug 31, 2026
80b2910
Add map tile configuration
cgivre Aug 31, 2026
e0c8622
Add map config API client
cgivre Aug 31, 2026
493e344
Add an OpenLayers map canvas with draw tools
cgivre Aug 31, 2026
d630749
Add a Map tab with a geospatial filter builder
cgivre Aug 31, 2026
94207d3
Skip the frontend build in CI test jobs
cgivre Aug 31, 2026
2d6a668
Shard CI tests and raise the surefire fork count
cgivre Aug 31, 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
  •  
  •  
  •  
42 changes: 40 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on: [push, pull_request]

jobs:
build:
name: Main Build
name: Main Build (java ${{ matrix.java }}, shard ${{ matrix.shard }})
runs-on: ubuntu-latest
if: github.repository == 'apache/drill'
timeout-minutes: 150
Expand All @@ -36,6 +36,12 @@ jobs:
# Java versions to run unit tests (Jetty 12 requires Java 17+)
java: [ '17', '21', '25' ]
profile: ['default-hadoop']
# exec/java-exec holds ~31 minutes of the suite in 577 classes, which dominates
# the build. Splitting it three ways by class name brings the longest shard to
# about 11 minutes. Boundaries were chosen from measured per-class times; the
# patterns are exhaustive, so a newly added test always lands in exactly one
# shard rather than being silently skipped.
shard: [ '1', '2', '3' ]
fail-fast: false
steps:
- name: Checkout
Expand All @@ -57,9 +63,41 @@ jobs:
mkswap /tmp/swapfile
swapon /tmp/swapfile
"
# Which slice of the suite this job runs. The patterns are exhaustive: every
# The patterns are spelled out one prefix at a time because surefire does NOT
# support character-class globs: -Dtest='Test[A-F]*' silently matches nothing and
# the build passes green having run no tests. Only '*' wildcards and comma
# separated lists work, so each letter gets its own entry, in both cases
# (TestforBaseTestInheritance has a lowercase f).
#
# Shard 3 repeats surefire's other default includes (*Test, *Tests, *TestCase) to
# pick up classes not named Test*. Verified exhaustive against all 894 test
# classes in the repo. TestFrameworkTest matches shards 1 and 3 and runs twice —
# harmless, and far safer than a gap that skips tests without saying so.
- name: Select test shard
id: shard
run: |
case "${{ matrix.shard }}" in
1) echo 'pattern=TestA*,Testa*,TestB*,Testb*,TestC*,Testc*,TestD*,Testd*,TestE*,Teste*,TestF*,Testf*' >> "$GITHUB_OUTPUT" ;;
2) echo 'pattern=TestG*,Testg*,TestH*,Testh*,TestI*,Testi*,TestJ*,Testj*,TestK*,Testk*,TestL*,Testl*,TestM*,Testm*,TestN*,Testn*,TestO*,Testo*,TestP*,Testp*' >> "$GITHUB_OUTPUT" ;;
3) echo 'pattern=TestQ*,Testq*,TestR*,Testr*,TestS*,Tests*,TestT*,Testt*,TestU*,Testu*,TestV*,Testv*,TestW*,Testw*,TestX*,Testx*,TestY*,Testy*,TestZ*,Testz*,*Test,*Tests,*TestCase,Test0*,Test1*,Test2*,Test3*,Test4*,Test5*,Test6*,Test7*,Test8*,Test9*,Test_*' >> "$GITHUB_OUTPUT" ;;
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
# time at little extra cost. Raise further only with memory headroom: the vector
# tests fail with OutOfMemoryException under pressure.
- name: Build and test
run: |
mvn -P${{ matrix.profile }} install --batch-mode --no-transfer-progress \
-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
- name: Remove swap space
run : |
Expand Down Expand Up @@ -107,7 +145,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
29 changes: 28 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,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_*
70 changes: 70 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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, per-tab Prospector | [`docs/dev/TabPersistence.md`](docs/dev/TabPersistence.md) |
| **Geospatial filter builder** — draw shapes on a map, push into SQL as ST_ predicates | [`docs/dev/GeoFilterBuilder.md`](docs/dev/GeoFilterBuilder.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) ==="
Loading
Loading