Fix #353: TableData should accept any type. (#354)

This commit is contained in:
Sriharsha Chintalapani 2021-09-01 20:57:17 -07:00 committed by GitHub
parent c70e9f028b
commit 8dcbcbc171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
64 changed files with 67 additions and 78 deletions

View File

@ -234,16 +234,8 @@
"description": "Data for multiple rows of the table.", "description": "Data for multiple rows of the table.",
"type": "array", "type": "array",
"items": { "items": {
"description": "Data for a single row of the table in the same order as `columns` fields.", "description": "Data for a single row of the table within the same order as columns fields.",
"type": "array", "type": "array"
"items": [
{
"type": "string"
},
{
"type": "number"
}
]
} }
} }
}, },

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: data/tags/personalDataTags.json # filename: data/tags/personalDataTags.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: data/tags/piiTags.json # filename: data/tags/piiTags.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: data/tags/tierTags.json # filename: data/tags/tierTags.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: data/tags/userTags.json # filename: data/tags/userTags.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/catalogVersion.json # filename: schema/api/catalogVersion.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/data/createChart.json # filename: schema/api/data/createChart.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations
@ -24,9 +24,6 @@ class CreateChartEntityRequest(BaseModel):
None, None,
description='Description of the database instance. What it has and how to use it.', description='Description of the database instance. What it has and how to use it.',
) )
chartId: Optional[str] = Field(
None, description='Unique Identifier of the Chart from the Source Service.'
)
chartType: Optional[chart.ChartType] = None chartType: Optional[chart.ChartType] = None
chartUrl: Optional[AnyUrl] = Field( chartUrl: Optional[AnyUrl] = Field(
None, description='Chart URL, pointing to its own Service URL' None, description='Chart URL, pointing to its own Service URL'

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/data/createDashboard.json # filename: schema/api/data/createDashboard.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/data/createDatabase.json # filename: schema/api/data/createDatabase.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/data/createTable.json # filename: schema/api/data/createTable.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/data/createTopic.json # filename: schema/api/data/createTopic.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/feed/createThread.json # filename: schema/api/feed/createThread.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/services/createDashboardService.json # filename: schema/api/services/createDashboardService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/services/createDatabaseService.json # filename: schema/api/services/createDatabaseService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/services/createMessagingService.json # filename: schema/api/services/createMessagingService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/services/updateDashboardService.json # filename: schema/api/services/updateDashboardService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/services/updateDatabaseService.json # filename: schema/api/services/updateDatabaseService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/services/updateMessagingService.json # filename: schema/api/services/updateMessagingService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/setOwner.json # filename: schema/api/setOwner.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/tags/createTag.json # filename: schema/api/tags/createTag.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/tags/createTagCategory.json # filename: schema/api/tags/createTagCategory.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/teams/createTeam.json # filename: schema/api/teams/createTeam.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/api/teams/createUser.json # filename: schema/api/teams/createUser.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/bots.json # filename: schema/entity/bots.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/chart.json # filename: schema/entity/data/chart.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/dashboard.json # filename: schema/entity/data/dashboard.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/database.json # filename: schema/entity/data/database.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/metrics.json # filename: schema/entity/data/metrics.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/pipeline.json # filename: schema/entity/data/pipeline.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/report.json # filename: schema/entity/data/report.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,11 +1,11 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/table.json # filename: schema/entity/data/table.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations
from enum import Enum from enum import Enum
from typing import List, Optional, Union from typing import List, Optional
from pydantic import BaseModel, Extra, Field, constr from pydantic import BaseModel, Extra, Field, constr
@ -119,7 +119,7 @@ class TableData(BaseModel):
None, None,
description='List of local column names (not fully qualified column names) of the table.', description='List of local column names (not fully qualified column names) of the table.',
) )
rows: Optional[List[List[Union[str, float]]]] = Field( rows: Optional[List[List]] = Field(
None, description='Data for multiple rows of the table.' None, description='Data for multiple rows of the table.'
) )

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/data/topic.json # filename: schema/entity/data/topic.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/feed/thread.json # filename: schema/entity/feed/thread.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/services/dashboardService.json # filename: schema/entity/services/dashboardService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/services/databaseService.json # filename: schema/entity/services/databaseService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/services/messagingService.json # filename: schema/entity/services/messagingService.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/tags/tagCategory.json # filename: schema/entity/tags/tagCategory.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/teams/team.json # filename: schema/entity/teams/team.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/entity/teams/user.json # filename: schema/entity/teams/user.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: json # filename: json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/auditLog.json # filename: schema/type/auditLog.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/basic.json # filename: schema/type/basic.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/collectionDescriptor.json # filename: schema/type/collectionDescriptor.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/dailyCount.json # filename: schema/type/dailyCount.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/entityReference.json # filename: schema/type/entityReference.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/entityUsage.json # filename: schema/type/entityUsage.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/jdbcConnection.json # filename: schema/type/jdbcConnection.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/profile.json # filename: schema/type/profile.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/schedule.json # filename: schema/type/schedule.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/tagLabel.json # filename: schema/type/tagLabel.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen: # generated by datamodel-codegen:
# filename: schema/type/usageDetails.json # filename: schema/type/usageDetails.json
# timestamp: 2021-09-01T06:44:13+00:00 # timestamp: 2021-09-02T03:08:31+00:00
from __future__ import annotations from __future__ import annotations