Re: Insertable records in Datasource v2.

2021-01-14 Thread Rahul Kumar
Thank you Jacek, for trying it out and clarifying. Appreciate it. Best, Rahul -- Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/ - To unsubscribe e-mail: user-unsubscr...@spark.apache.org

Re: Insertable records in Datasource v2.

2021-01-14 Thread Jacek Laskowski
Hi Rahul, I think it's not and will not be supported. You should report an issue in JIRA at https://issues.apache.org/jira/projects/SPARK, but don't expect a solution with temporary views though. I did manage to reproduce the AnalysisException: unresolved operator and even though INSERT INTO view

Insertable records in Datasource v2.

2021-01-13 Thread Rahul Kumar
I'm implementing V2 datasource for a custom datasource. I'm trying to insert a record into a temp view, in following fashion. insertDFWithSchema.createOrReplaceTempView(sqlView) spark.sql(s”insert into $sqlView values (2, ‘insert_record1’, 200, 23000), (20001, ‘insert_record2’, 201, 23001)“)