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.",
"type": "array",
"items": {
"description": "Data for a single row of the table in the same order as `columns` fields.",
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "number"
}
]
"description": "Data for a single row of the table within the same order as columns fields.",
"type": "array"
}
}
},

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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
@ -24,9 +24,6 @@ class CreateChartEntityRequest(BaseModel):
None,
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
chartUrl: Optional[AnyUrl] = Field(
None, description='Chart URL, pointing to its own Service URL'

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,11 +1,11 @@
# generated by datamodel-codegen:
# 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 enum import Enum
from typing import List, Optional, Union
from typing import List, Optional
from pydantic import BaseModel, Extra, Field, constr
@ -119,7 +119,7 @@ class TableData(BaseModel):
None,
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.'
)

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,3 +1,3 @@
# generated by datamodel-codegen:
# 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:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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

View File

@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# 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