[jira] [Updated] (SPARK-21488) Make saveAsTable() and createOrReplaceTempView() return dataframe of created table/ created view
[ https://issues.apache.org/jira/browse/SPARK-21488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hyukjin Kwon updated SPARK-21488: - Labels: bulk-closed (was: ) > Make saveAsTable() and createOrReplaceTempView() return dataframe of created > table/ created view > > > Key: SPARK-21488 > URL: https://issues.apache.org/jira/browse/SPARK-21488 > Project: Spark > Issue Type: Improvement > Components: SQL >Affects Versions: 2.2.0 >Reporter: Ruslan Dautkhanov >Priority: Minor > Labels: bulk-closed > > It would be great to make saveAsTable() return dataframe of created table, > so you could pipe result further as for example > {code} > mv_table_df = (sqlc.sql(''' > SELECT ... > FROM > ''') > .write.format("parquet").mode("overwrite") > .saveAsTable('test.parquet_table') > .createOrReplaceTempView('mv_table') > ) > {code} > ... Above code returns now expectedly: > {noformat} > AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' > {noformat} > If this is implemented, we can skip a step like > {code} > sqlc.sql('SELECT * FROM > test.parquet_table').createOrReplaceTempView('mv_table') > {code} > We have this pattern very frequently. > Further improvement can be made if createOrReplaceTempView also returns > dataframe object, so in one pipeline of functions > we can > - create an external table > - create a dataframe reference to this newly created for SparkSQL and as a > Spark variable. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-21488) Make saveAsTable() and createOrReplaceTempView() return dataframe of created table/ created view
[ https://issues.apache.org/jira/browse/SPARK-21488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruslan Dautkhanov updated SPARK-21488: -- Target Version/s: 3.0.0 > Make saveAsTable() and createOrReplaceTempView() return dataframe of created > table/ created view > > > Key: SPARK-21488 > URL: https://issues.apache.org/jira/browse/SPARK-21488 > Project: Spark > Issue Type: Improvement > Components: SQL >Affects Versions: 2.2.0 >Reporter: Ruslan Dautkhanov >Priority: Minor > > It would be great to make saveAsTable() return dataframe of created table, > so you could pipe result further as for example > {code} > mv_table_df = (sqlc.sql(''' > SELECT ... > FROM > ''') > .write.format("parquet").mode("overwrite") > .saveAsTable('test.parquet_table') > .createOrReplaceTempView('mv_table') > ) > {code} > ... Above code returns now expectedly: > {noformat} > AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' > {noformat} > If this is implemented, we can skip a step like > {code} > sqlc.sql('SELECT * FROM > test.parquet_table').createOrReplaceTempView('mv_table') > {code} > We have this pattern very frequently. > Further improvement can be made if createOrReplaceTempView also returns > dataframe object, so in one pipeline of functions > we can > - create an external table > - create a dataframe reference to this newly created for SparkSQL and as a > Spark variable. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-21488) Make saveAsTable() and createOrReplaceTempView() return dataframe of created table/ created view
[ https://issues.apache.org/jira/browse/SPARK-21488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Owen updated SPARK-21488: -- Priority: Minor (was: Major) > Make saveAsTable() and createOrReplaceTempView() return dataframe of created > table/ created view > > > Key: SPARK-21488 > URL: https://issues.apache.org/jira/browse/SPARK-21488 > Project: Spark > Issue Type: Improvement > Components: SQL >Affects Versions: 2.2.0 >Reporter: Ruslan Dautkhanov >Priority: Minor > > It would be great to make saveAsTable() return dataframe of created table, > so you could pipe result further as for example > {code} > mv_table_df = (sqlc.sql(''' > SELECT ... > FROM > ''') > .write.format("parquet").mode("overwrite") > .saveAsTable('test.parquet_table') > .createOrReplaceTempView('mv_table') > ) > {code} > ... Above code returns now expectedly: > {noformat} > AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' > {noformat} > If this is implemented, we can skip a step like > {code} > sqlc.sql('SELECT * FROM > test.parquet_table').createOrReplaceTempView('mv_table') > {code} > We have this pattern very frequently. > Further improvement can be made if createOrReplaceTempView also returns > dataframe object, so in one pipeline of functions > we can > - create an external table > - create a dataframe reference to this newly created for SparkSQL and as a > Spark variable. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-21488) Make saveAsTable() and createOrReplaceTempView() return dataframe of created table/ created view
[ https://issues.apache.org/jira/browse/SPARK-21488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shixiong Zhu updated SPARK-21488: - Component/s: (was: PySpark) (was: Spark Core) > Make saveAsTable() and createOrReplaceTempView() return dataframe of created > table/ created view > > > Key: SPARK-21488 > URL: https://issues.apache.org/jira/browse/SPARK-21488 > Project: Spark > Issue Type: Improvement > Components: SQL >Affects Versions: 2.2.0 >Reporter: Ruslan Dautkhanov > > It would be great to make saveAsTable() return dataframe of created table, > so you could pipe result further as for example > {code} > mv_table_df = (sqlc.sql(''' > SELECT ... > FROM > ''') > .write.format("parquet").mode("overwrite") > .saveAsTable('test.parquet_table') > .createOrReplaceTempView('mv_table') > ) > {code} > ... Above code returns now expectedly: > {noformat} > AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' > {noformat} > If this is implemented, we can skip a step like > {code} > sqlc.sql('SELECT * FROM > test.parquet_table').createOrReplaceTempView('mv_table') > {code} > We have this pattern very frequently. > Further improvement can be made if createOrReplaceTempView also returns > dataframe object, so in one pipeline of functions > we can > - create an external table > - create a dataframe reference to this newly created for SparkSQL and as a > Spark variable. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-21488) Make saveAsTable() and createOrReplaceTempView() return dataframe of created table/ created view
[ https://issues.apache.org/jira/browse/SPARK-21488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruslan Dautkhanov updated SPARK-21488: -- Description: It would be great to make saveAsTable() return dataframe of created table, so you could pipe result further as for example {code} mv_table_df = (sqlc.sql(''' SELECT ... FROM ''') .write.format("parquet").mode("overwrite") .saveAsTable('test.parquet_table') .createOrReplaceTempView('mv_table') ) {code} ... Above code returns now expectedly: {noformat} AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' {noformat} If this is implemented, we can skip a step like {code} sqlc.sql('SELECT * FROM test.parquet_table').createOrReplaceTempView('mv_table') {code} We have this pattern very frequently. Further improvement can be made if createOrReplaceTempView also returns dataframe object, so in one pipeline of functions we can - create an external table - create a dataframe reference to this newly created for SparkSQL and as a Spark variable. was: It would be great to make saveAsTable() return dataframe of created table, so you could pipe result further as for example {code} (sqlc.sql(''' SELECT ... FROM ''') .write.format("parquet").mode("overwrite") .saveAsTable('test.parquet_table') .createOrReplaceTempView('mv_table') ) {code} ... Above code returns now expectedly: {noformat} AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' {noformat} If this is implemented, we can skip a step like {code} sqlc.sql('SELECT * FROM test.parquet_table').createOrReplaceTempView('mv_table') {code} We have this pattern very frequently. > Make saveAsTable() and createOrReplaceTempView() return dataframe of created > table/ created view > > > Key: SPARK-21488 > URL: https://issues.apache.org/jira/browse/SPARK-21488 > Project: Spark > Issue Type: Improvement > Components: PySpark, Spark Core, SQL >Affects Versions: 2.2.0 >Reporter: Ruslan Dautkhanov > > It would be great to make saveAsTable() return dataframe of created table, > so you could pipe result further as for example > {code} > mv_table_df = (sqlc.sql(''' > SELECT ... > FROM > ''') > .write.format("parquet").mode("overwrite") > .saveAsTable('test.parquet_table') > .createOrReplaceTempView('mv_table') > ) > {code} > ... Above code returns now expectedly: > {noformat} > AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' > {noformat} > If this is implemented, we can skip a step like > {code} > sqlc.sql('SELECT * FROM > test.parquet_table').createOrReplaceTempView('mv_table') > {code} > We have this pattern very frequently. > Further improvement can be made if createOrReplaceTempView also returns > dataframe object, so in one pipeline of functions > we can > - create an external table > - create a dataframe reference to this newly created for SparkSQL and as a > Spark variable. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-21488) Make saveAsTable() and createOrReplaceTempView() return dataframe of created table/ created view
[ https://issues.apache.org/jira/browse/SPARK-21488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruslan Dautkhanov updated SPARK-21488: -- Summary: Make saveAsTable() and createOrReplaceTempView() return dataframe of created table/ created view (was: Make saveAsTable() return dataframe of created table) > Make saveAsTable() and createOrReplaceTempView() return dataframe of created > table/ created view > > > Key: SPARK-21488 > URL: https://issues.apache.org/jira/browse/SPARK-21488 > Project: Spark > Issue Type: Improvement > Components: PySpark, Spark Core, SQL >Affects Versions: 2.2.0 >Reporter: Ruslan Dautkhanov > > It would be great to make saveAsTable() return dataframe of created table, > so you could pipe result further as for example > {code} > (sqlc.sql(''' > SELECT ... > FROM > ''') > .write.format("parquet").mode("overwrite") > .saveAsTable('test.parquet_table') > .createOrReplaceTempView('mv_table') > ) > {code} > ... Above code returns now expectedly: > {noformat} > AttributeError: 'NoneType' object has no attribute 'createOrReplaceTempView' > {noformat} > If this is implemented, we can skip a step like > {code} > sqlc.sql('SELECT * FROM > test.parquet_table').createOrReplaceTempView('mv_table') > {code} > We have this pattern very frequently. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org