Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Support DayTimeIntervalType in the client

Why are the changes needed?

In #38770, I forgot to deal with DayTimeIntervalType

Does this PR introduce any user-facing change?

No

How was this patch tested?

added test case, the schema should be

In [1]: query = """ SELECT INTERVAL '100 10:30' DAY TO MINUTE AS interval """

In [2]: spark.sql(query).schema
Out[2]: StructType([StructField('interval', DayTimeIntervalType(0, 2), False)])

@zhengruifeng zhengruifeng changed the title [SPARK-41238][CONNECT][PYTHON] Support DayTimeIntervalType in the client [SPARK-41238][CONNECT][PYTHON][FOLLOWUP] Support DayTimeIntervalType in the client Nov 28, 2022
@zhengruifeng
Copy link
Contributor Author

thanks for reivews, merged into master

@zhengruifeng zhengruifeng deleted the connect_type_time_stamp branch November 29, 2022 01:43
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 15, 2022
…` in the client

### What changes were proposed in this pull request?
Support `DayTimeIntervalType` in the client

### Why are the changes needed?
In apache#38770, I forgot to deal with `DayTimeIntervalType`

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
added test case, the schema should be
```
In [1]: query = """ SELECT INTERVAL '100 10:30' DAY TO MINUTE AS interval """

In [2]: spark.sql(query).schema
Out[2]: StructType([StructField('interval', DayTimeIntervalType(0, 2), False)])
```

Closes apache#38818 from zhengruifeng/connect_type_time_stamp.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
…` in the client

### What changes were proposed in this pull request?
Support `DayTimeIntervalType` in the client

### Why are the changes needed?
In apache#38770, I forgot to deal with `DayTimeIntervalType`

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
added test case, the schema should be
```
In [1]: query = """ SELECT INTERVAL '100 10:30' DAY TO MINUTE AS interval """

In [2]: spark.sql(query).schema
Out[2]: StructType([StructField('interval', DayTimeIntervalType(0, 2), False)])
```

Closes apache#38818 from zhengruifeng/connect_type_time_stamp.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants