File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ def __eq__(self, __value: object) -> bool:
4545
4646 def to_arrow_field (self ):
4747 metadata = {
48- arrow .METADATA_PRIMARY_KEY : arrow . METADATA_TRUE
49- if self .primary_key
50- else arrow . METADATA_FALSE ,
51- arrow .METADATA_UNIQUE : arrow . METADATA_TRUE
52- if self .unique
53- else arrow . METADATA_FALSE ,
54- arrow .METADATA_INCREMENTAL : arrow . METADATA_TRUE
55- if self .incremental_key
56- else arrow . METADATA_FALSE ,
48+ arrow .METADATA_PRIMARY_KEY : (
49+ arrow . METADATA_TRUE if self .primary_key else arrow . METADATA_FALSE
50+ ) ,
51+ arrow .METADATA_UNIQUE : (
52+ arrow . METADATA_TRUE if self .unique else arrow . METADATA_FALSE
53+ ) ,
54+ arrow .METADATA_INCREMENTAL : (
55+ arrow . METADATA_TRUE if self .incremental_key else arrow . METADATA_FALSE
56+ ) ,
5757 }
5858 return pa .field (self .name , self .type , metadata = metadata )
5959
Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ def to_arrow_schema(self):
8888 arrow .METADATA_TABLE_DESCRIPTION : self .description ,
8989 arrow .METADATA_TABLE_TITLE : self .title ,
9090 arrow .METADATA_TABLE_DEPENDS_ON : self .parent .name if self .parent else "" ,
91- arrow .METADATA_INCREMENTAL : arrow . METADATA_TRUE
92- if self .is_incremental
93- else arrow . METADATA_FALSE ,
91+ arrow .METADATA_INCREMENTAL : (
92+ arrow . METADATA_TRUE if self .is_incremental else arrow . METADATA_FALSE
93+ ) ,
9494 }
9595 for column in self .columns :
9696 fields .append (column .to_arrow_field ())
Original file line number Diff line number Diff line change 1212dependencies = [
1313 "cloudquery-plugin-pb==0.0.21" ,
1414 "exceptiongroup==1.2.0" ,
15- "black==23.12 .1" ,
15+ "black==24.1 .1" ,
1616 "grpcio==1.60.0" ,
1717 "grpcio-tools==1.60.0" ,
1818 "iniconfig==2.0.0" ,
You can’t perform that action at this time.
0 commit comments