Skip to content

Commit 69449bd

Browse files
committed
chore: refactor API to support multi-volumes (wip)
1 parent e6747f1 commit 69449bd

20 files changed

Lines changed: 1097 additions & 609 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ This project uses conventional commits (enforced by commitlint):
408408

409409
## Important Context
410410

411-
### Current Branch: improve-bundle-size
412-
This branch focuses on optimizing bundle size through tsdown configuration tuning.
411+
### Current Branch: plugin/files
412+
This branch implements the multi-volume files plugin architecture.
413413

414414
### Key Dependencies
415415
- `@databricks/sdk-experimental` v0.15.0+ - Databricks services SDK

apps/dev-playground/.env.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ NODE_ENV='development'
66
OTEL_EXPORTER_OTLP_ENDPOINT='http://localhost:4318'
77
OTEL_RESOURCE_ATTRIBUTES='service.sample_attribute=dev'
88
OTEL_SERVICE_NAME='dev-playground'
9+
DATABRICKS_VOLUME_PLAYGROUND=
10+
DATABRICKS_VOLUME_OTHER=
911
DATABRICKS_GENIE_SPACE_ID=
1012
LAKEBASE_ENDPOINT='' # Run: databricks postgres list-endpoints projects/{project-id}/branches/{branch-id} — use the `name` field from the output
1113
PGHOST=

apps/dev-playground/app.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
env:
22
- name: DATABRICKS_WAREHOUSE_ID
33
valueFrom: sql-warehouse
4-
- name: DATABRICKS_DEFAULT_VOLUME
4+
- name: DATABRICKS_VOLUME_PLAYGROUND
55
valueFrom: volume
6+
- name: DATABRICKS_VOLUME_OTHER
7+
valueFrom: other-volume

apps/dev-playground/client/src/appKitTypes.d.ts

Lines changed: 8 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,28 @@ declare module "@databricks/appkit-ui/react" {
1414
endDate: SQLDateMarker;
1515
};
1616
result: Array<{
17-
/** @sqlType STRING */
18-
app_name: string;
19-
/** @sqlType STRING */
20-
day_of_week: string;
21-
/** @sqlType DECIMAL(35,2) */
22-
spend: number;
17+
;
2318
}>;
2419
};
2520
apps_list: {
2621
name: "apps_list";
2722
parameters: Record<string, never>;
2823
result: Array<{
29-
/** @sqlType STRING */
30-
id: string;
31-
/** @sqlType STRING */
32-
name: string;
33-
/** @sqlType STRING */
34-
creator: string;
35-
/** @sqlType STRING */
36-
tags: string;
37-
/** @sqlType DECIMAL(38,6) */
38-
totalSpend: number;
39-
/** @sqlType DATE */
40-
createdAt: string;
24+
;
4125
}>;
4226
};
4327
cost_recommendations: {
4428
name: "cost_recommendations";
4529
parameters: Record<string, never>;
4630
result: Array<{
47-
/** @sqlType INT */
48-
dummy: number;
31+
;
4932
}>;
5033
};
5134
example: {
5235
name: "example";
5336
parameters: Record<string, never>;
5437
result: Array<{
55-
/** @sqlType BOOLEAN */
56-
"(1 = 1)": boolean;
38+
;
5739
}>;
5840
};
5941
spend_data: {
@@ -73,12 +55,7 @@ declare module "@databricks/appkit-ui/react" {
7355
creator: SQLStringMarker;
7456
};
7557
result: Array<{
76-
/** @sqlType STRING */
77-
group_key: string;
78-
/** @sqlType TIMESTAMP */
79-
aggregation_period: string;
80-
/** @sqlType DECIMAL(38,6) */
81-
cost_usd: number;
58+
;
8259
}>;
8360
};
8461
spend_summary: {
@@ -92,12 +69,7 @@ declare module "@databricks/appkit-ui/react" {
9269
startDate: SQLDateMarker;
9370
};
9471
result: Array<{
95-
/** @sqlType DECIMAL(33,0) */
96-
total: number;
97-
/** @sqlType DECIMAL(33,0) */
98-
average: number;
99-
/** @sqlType DECIMAL(33,0) */
100-
forecasted: number;
72+
;
10173
}>;
10274
};
10375
sql_helpers_test: {
@@ -117,22 +89,7 @@ declare module "@databricks/appkit-ui/react" {
11789
binaryParam: SQLStringMarker;
11890
};
11991
result: Array<{
120-
/** @sqlType STRING */
121-
string_value: string;
122-
/** @sqlType STRING */
123-
number_value: string;
124-
/** @sqlType STRING */
125-
boolean_value: string;
126-
/** @sqlType STRING */
127-
date_value: string;
128-
/** @sqlType STRING */
129-
timestamp_value: string;
130-
/** @sqlType BINARY */
131-
binary_value: string;
132-
/** @sqlType STRING */
133-
binary_hex: string;
134-
/** @sqlType INT */
135-
binary_length: number;
92+
;
13693
}>;
13794
};
13895
top_contributors: {
@@ -146,10 +103,7 @@ declare module "@databricks/appkit-ui/react" {
146103
endDate: SQLDateMarker;
147104
};
148105
result: Array<{
149-
/** @sqlType STRING */
150-
app_name: string;
151-
/** @sqlType DECIMAL(38,6) */
152-
total_cost_usd: number;
106+
;
153107
}>;
154108
};
155109
untagged_apps: {

0 commit comments

Comments
 (0)