You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/09/30 01:53:14 UTC

[GitHub] [incubator-superset] betodealmeida edited a comment on pull request #11098: Add UUID column to ImportMixin

betodealmeida edited a comment on pull request #11098:
URL: https://github.com/apache/incubator-superset/pull/11098#issuecomment-701021326


   ```
   -- BEFORE migration
   sqlite> SELECT position_json FROM dashboards WHERE id=8;
   {
       "CHART-Hkx6154FEm": {
           "children": [],
           "id": "CHART-Hkx6154FEm",
           "meta": {
               "chartId": 82,
               "height": 30,
               "sliceName": "slice 1",
               "width": 4
           },
           "type": "CHART"
       },
       "GRID_ID": {
           "children": [
               "ROW-SyT19EFEQ"
           ],
           "id": "GRID_ID",
           "type": "GRID"
       },
       "ROOT_ID": {
           "children": [
               "GRID_ID"
           ],
           "id": "ROOT_ID",
           "type": "ROOT"
       },
       "ROW-SyT19EFEQ": {
           "children": [
               "CHART-Hkx6154FEm"
           ],
           "id": "ROW-SyT19EFEQ",
           "meta": {
               "background": "BACKGROUND_TRANSPARENT"
           },
           "type": "ROW"
       },
       "DASHBOARD_VERSION_KEY": "v2"
   }
   -- AFTER migration
   sqlite> SELECT position_json FROM dashboards WHERE id=8;
   {
       "CHART-Hkx6154FEm": {
           "children": [],
           "id": "CHART-Hkx6154FEm",
           "meta": {
               "chartId": 82,
               "height": 30,
               "sliceName": "slice 1",
               "width": 4,
               "uuid": "706c8c3c-175b-4606-9016-4ef7e2ebff09"
           },
           "type": "CHART"
       },
       "GRID_ID": {
           "children": [
               "ROW-SyT19EFEQ"
           ],
           "id": "GRID_ID",
           "type": "GRID"
       },
       "ROOT_ID": {
           "children": [
               "GRID_ID"
           ],
           "id": "ROOT_ID",
           "type": "ROOT"
       },
       "ROW-SyT19EFEQ": {
           "children": [
               "CHART-Hkx6154FEm"
           ],
           "id": "ROW-SyT19EFEQ",
           "meta": {
               "background": "BACKGROUND_TRANSPARENT"
           },
           "type": "ROW"
       },
       "DASHBOARD_VERSION_KEY": "v2"
   }
   sqlite> SELECT * FROM slices WHERE uuid=REPLACE('706c8c3c-175b-4606-9016-4ef7e2ebff09', '-', '');
   2020-09-23 12:21:27.651468|2020-09-23 12:43:27.098505|82|Unicode Cloud|table||word_cloud|{"granularity_sqla": "dttm", "groupby": [], "limit": "100", "metric": {"aggregate": "SUM", "column": {"column_name": "value"}, "expressionType": "SIMPLE", "label": "Value"}, "rotation": "square", "row_limit": 50000, "series": "short_phrase", "since": "100 years ago", "size_from": "10", "size_to": "70", "until": "now", "viz_type": "word_cloud", "remote_id": 33, "datasource_name": "unicode_test", "schema": null, "database_name": "examples", "import_time": 1600890207}|2|2|||[examples].[unicode_test](id:4)|4||706c8c3c175b460690164ef7e2ebff09
   sqlite> 
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org