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 2021/02/22 06:06:48 UTC

[GitHub] [superset] madhamanchiharsha opened a new issue #13267: calculated columns creation using datasetput api

madhamanchiharsha opened a new issue #13267:
URL: https://github.com/apache/superset/issues/13267


   HI,
   I am automating our dashboard creation using apis. We have to create a calculated columns in our datasets. I have done the same from UI and added a sample image here.In order to create the calculated columns, I am using /api/v1/dataset/{pk} api. However these are the problems I am facing:
    When I try this in swagger: validation fails for override_columns (I have tried false/False/FALSE/0).
    When I try this is in postman. I get the following error saying "Datasource already exists".
   
   ### Expected results
   
   we need to get response as 201 for creating calculated columns in dataset api
   
   ### Actual results
   
   In swagger validation failing for override columns field.
   
   #### Screenshots
   ![image](https://user-images.githubusercontent.com/14903753/108668971-240abd00-7502-11eb-8180-b284ea3d4207.png)
   
   
   #### How to reproduce the bug
   
   
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: 1.0
   - python version: 3.8
   - node.js version: `node -v`
   


----------------------------------------------------------------
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


[GitHub] [superset] zuzana-vej closed issue #13267: calculated columns creation using datasetput api

Posted by GitBox <gi...@apache.org>.
zuzana-vej closed issue #13267:
URL: https://github.com/apache/superset/issues/13267


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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


[GitHub] [superset] one-data-cookie commented on issue #13267: calculated columns creation using datasetput api

Posted by GitBox <gi...@apache.org>.
one-data-cookie commented on issue #13267:
URL: https://github.com/apache/superset/issues/13267#issuecomment-901494285


   I'm facing the same issue. 😢 
   
   Any news on this, @dpgaspar? Or any chance you got this resolved, @madhamanchiharsha?  


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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


[GitHub] [superset] dpgaspar commented on issue #13267: calculated columns creation using datasetput api

Posted by GitBox <gi...@apache.org>.
dpgaspar commented on issue #13267:
URL: https://github.com/apache/superset/issues/13267#issuecomment-811968497


   @madhamanchiharsha Can you please add few examples of the POST payload and response


-- 
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


[GitHub] [superset] madhamanchiharsha commented on issue #13267: calculated columns creation using datasetput api

Posted by GitBox <gi...@apache.org>.
madhamanchiharsha commented on issue #13267:
URL: https://github.com/apache/superset/issues/13267#issuecomment-812316890


   headerPart:
   http://127.0.0.1:8088/api/v1/dataset/72?override_columns=False
   bodyPart:
   {
     "database_id": 1,
     "schema": "null",
     "table_name": "examples",
     "columns": [
       {
         "column_name": "example1",
         "description": null,
         "expression": "split_part(\"IterationPath\", '\\', 3)",
         "filterable": true,
         "groupby": true,
         "python_date_format": null,
         "verbose_name": "example1"
       },
       {
         "column_name": "example2",
         "description": null,
         "expression": "split_part(\"IterationPath\", '\\', 4)",
         "filterable": true,
         "groupby": true,
         "python_date_format": null,
         "verbose_name": "example2"
       },
       {
         "column_name": "example3",
         "description": null,
         "expression": "split_part(\"AreaPath\", '\\', 2)",
         "filterable": true,
         "groupby": true,
         "python_date_format": null,
         "verbose_name": "example3"
       }
     ]
   }


-- 
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


[GitHub] [superset] villebro commented on issue #13267: calculated columns creation using datasetput api

Posted by GitBox <gi...@apache.org>.
villebro commented on issue #13267:
URL: https://github.com/apache/superset/issues/13267#issuecomment-811661658


   @dpgaspar can you take a look at this?


-- 
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


[GitHub] [superset] zuzana-vej commented on issue #13267: calculated columns creation using datasetput api

Posted by GitBox <gi...@apache.org>.
zuzana-vej commented on issue #13267:
URL: https://github.com/apache/superset/issues/13267#issuecomment-1069340234


   @one-data-cookie @madhamanchiharsha please reopen this ticket/file new ticket if you are still facing the same issue on the latest version / master


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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