I got an error Invalid request provided: newColumnsBatch operation is not supported on non-root logical table
while deploying Quicksight CDK.
Does anyone know what this mean?
I’m creating a join dataset. Adding the first physical table and logical table works. When adding the second physical table and logical table of the second dataset and the joined dataset, it caused the error.
qs_athena_dataset_joborchestration_raw = quicksight.CfnDataSet(
self,
"AthenaDatasetJoborchestrationRaw",
import_mode="SPICE",
name=f"{stack_prefix}Joborchestration",
aws_account_id=account_id,
data_set_id=f"{stack_prefix}JoborchestrationData",
data_set_usage_configuration=quicksight.CfnDataSet.DataSetUsageConfigurationProperty(
disable_use_as_direct_query_source=False,
disable_use_as_imported_source=False,
),
physical_table_map={
"edljoblog-table": qs_athena_dataset_edljoblog_physical_table,
"joborchestration-table": qs_athena_dataset_joborchestration_physical_table,
},
logical_table_map={
"edljoblog-table": qs_athena_dataset_edljoblog_logical_table,
"joborchestration-table": qs_athena_dataset_joborchestration_logical_table,
"edljoblog-joborchestration-table": quicksight.CfnDataSet.LogicalTableProperty(
alias="edljoblog-joborchestration",
source=quicksight.CfnDataSet.LogicalTableSourceProperty(
join_instruction=quicksight.CfnDataSet.JoinInstructionProperty(
left_operand="joborchestration-table",
right_operand="edljoblog-table",
on_clause="dataSource = {dataSource[devEDLJobLog]} AND table = tableName",
type="LEFT",
),
),
data_transforms=[
quicksight.CfnDataSet.TransformOperationProperty(
project_operation=quicksight.CfnDataSet.ProjectOperationProperty(
projected_columns=[
"dataSource",
"date",
"dateTime",
"file_location"
]
)
),
],
),
},
permissions=qs_dataset_permissions,
)