add sample data for table profile (#12422)

This commit is contained in:
Teddy 2023-07-14 09:13:22 +02:00 committed by GitHub
parent 42a426226e
commit 838ff73a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,8 @@
{
"columnCount": 12.0,
"rowCount": 14567.0,
"sizeInByte": 16890,
"createDateTime": 1684133069067,
"columnProfile": [
{
"name": "shop_id",
@ -204,6 +206,8 @@
{
"columnCount": 12.0,
"rowCount": 13256.0,
"sizeInByte": 163290,
"createDateTime": 1684133057067,
"columnProfile": [
{
"name": "shop_id",
@ -402,6 +406,8 @@
{
"columnCount": 12.0,
"rowCount": 10256.0,
"sizeInByte": 16890,
"createDateTime": 1684133069067,
"columnProfile": [
{
"name": "shop_id",
@ -592,6 +598,8 @@
{
"columnCount": 12.0,
"rowCount": 8945.0,
"sizeInByte": 16890521,
"createDateTime": 1684133069067,
"columnProfile": [
{
"name": "shop_id",
@ -778,6 +786,8 @@
{
"columnCount": 12.0,
"rowCount": 5461.0,
"sizeInByte": 1572301627719.68,
"createDateTime": 1684133069067,
"columnProfile": [
{
"name": "shop_id",

View File

@ -1084,6 +1084,8 @@ class SampleDataSource(
tableProfile=TableProfile(
columnCount=profile["columnCount"],
rowCount=profile["rowCount"],
createDateTime=profile.get("createDateTime"),
sizeInByte=profile.get("sizeInByte"),
timestamp=(
datetime.now(tz=timezone.utc) - timedelta(days=days)
).timestamp(),