Skip to content

Commit

Permalink
Fixes in the UI after renaming a property file_paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrczarnas committed Feb 11, 2024
1 parent ec883ab commit fa870b5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ enum fileFormat {
csv = 'csv_file_format',
json = 'json_file_format',
parquet = 'parquet_file_format',
file_path_list = 'file_path_list',
file_path = 'file_path'
}

Expand Down Expand Up @@ -117,7 +116,6 @@ const TableDetails = () => {
file_format:
{
[fileFormatType as keyof FileFormatSpec]: configuration,
file_path_list: paths.filter((x) => x.length !== 0),
file_paths: paths.filter((x) => x.length !== 0)
} ?? undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ enum fileFormat {
csv = 'csv_file_format',
json = 'json_file_format',
parquet = 'parquet_file_format',
file_path_list = 'file_path_list',
file_path = 'file_path'
}

Expand Down Expand Up @@ -68,7 +67,7 @@ const AddTableDialog = ({ open, onClose, node }: AddTableDialogProps) => {

const args = node ? node.id.toString().split('.') : [];

//todo: pass file_paths or file_path_list to createTable method, based on provider type
//todo: pass file_paths to createTable method, based on provider type
const handleSubmit = async () => {
try {
setLoading(true);
Expand All @@ -77,7 +76,6 @@ const AddTableDialog = ({ open, onClose, node }: AddTableDialogProps) => {
file_format:
{
[fileFormatType as keyof FileFormatSpec]: configuration,
file_path_list: paths.filter((x) => x.length !== 0),
file_paths: paths.filter((x) => x.length !== 0)
} ?? undefined
}).then(() =>
Expand All @@ -93,7 +91,6 @@ const AddTableDialog = ({ open, onClose, node }: AddTableDialogProps) => {
file_format:
{
[fileFormatType as keyof FileFormatSpec]: configuration,
file_path_list: paths.filter((x) => x.length !== 0),
file_paths: paths.filter((x) => x.length !== 0)
} ?? undefined
}).then(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ enum fileFormat {
csv = 'csv_file_format',
json = 'json_file_format',
parquet = 'parquet_file_format',
file_path_list = 'file_path_list',
file_path = 'file_path'
}

Expand Down Expand Up @@ -60,9 +59,6 @@ export default function FileFormatConfiguration({
case fileFormat.file_path: {
return <></>;
}
case fileFormat.file_path_list: {
return <></>;
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31391,15 +31391,9 @@
"description" : "Parquet file format specification.",
"$ref" : "#/definitions/ParquetFileFormatSpec"
},
"file_path_list" : {
"type" : "array",
"description" : "The list of paths to files with data that are used as a source.",
"items" : {
"type" : "string"
}
},
"file_paths" : {
"type" : "array",
"description" : "The list of paths to files with data that are used as a source.",
"items" : {
"type" : "string"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30132,13 +30132,9 @@ definitions:
parquet_file_format:
description: "Parquet file format specification."
$ref: "#/definitions/ParquetFileFormatSpec"
file_path_list:
type: "array"
description: "The list of paths to files with data that are used as a source."
items:
type: "string"
file_paths:
type: "array"
description: "The list of paths to files with data that are used as a source."
items:
type: "string"
HierarchyIdModel:
Expand Down

0 comments on commit fa870b5

Please sign in to comment.