Skip to content

Commit

Permalink
Add new aliases for cross_join, info and drop (#8773)
Browse files Browse the repository at this point in the history
Adds new aliases
append -> cross_join
metadata -> info
skip -> drop
  • Loading branch information
AdRiley authored Jan 16, 2024
1 parent 51540e2 commit ef7b11f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 12 deletions.
3 changes: 2 additions & 1 deletion distribution/lib/Standard/Base/0.0.0-dev/src/Data/Array.enso
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ type Array
take : (Index_Sub_Range | Range | Integer) -> Vector Any
take self range=(Index_Sub_Range.First 1) = Vector.take self range

## GROUP Selections
## ALIAS skip
GROUP Selections
ICON select_row
Creates a new `Vector`, removing any elements from the specified range.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,8 @@ type Vector a
_ ->
take_helper self.length (self.at _) self.slice (slice_ranges self) range

## GROUP Selections
## ALIAS skip
GROUP Selections
ICON select_row
Creates a new `Vector`, removing any elements from the specified range.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ type Column
to_table self =
Table.Value self.name self.connection [self.as_internal] self.context

## GROUP Standard.Base.Metadata
## ALIAS metadata
GROUP Standard.Base.Metadata
Returns a Table describing this column's contents.

The table behaves like `Table.info` - it lists the column name, the count
Expand Down Expand Up @@ -1128,7 +1129,8 @@ type Column
take : (Index_Sub_Range | Range | Integer) -> Column
take self range=(First 1) = self.to_table.take range . at 0

## GROUP Standard.Base.Selections
## ALIAS skip
GROUP Standard.Base.Selections
ICON select_row
Creates a new Column from the input with the specified range of rows
removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,8 @@ type Table
take self range=(First 1) =
Take_Drop_Helpers.take_drop_helper Take_Drop.Take self range

## GROUP Standard.Base.Selections
## ALIAS skip
GROUP Standard.Base.Selections
ICON select_row
Creates a new Table from the input with the specified range of rows
removed.
Expand Down Expand Up @@ -1305,7 +1306,7 @@ type Table
new_ctx = Context.for_subquery new_from . set_where_filters where_expressions
Table.Value new_table_name self.connection result_columns new_ctx

## ALIAS cartesian join
## ALIAS cartesian join, append
GROUP Standard.Base.Calculations
ICON join
Joins tables by pairing every row of the left table with every row of the
Expand Down Expand Up @@ -2336,7 +2337,8 @@ type Table
to_sql : SQL_Statement
to_sql self = self.connection.dialect.generate_sql self.to_select_query

## GROUP Standard.Base.Metadata
## ALIAS metadata
GROUP Standard.Base.Metadata
Returns a Table describing this table's contents.

The table lists all columns, counts of non-null items and value types of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,8 @@ type Column
to_table : Table
to_table self = Table.Value self.java_column.toTable

## GROUP Standard.Base.Metadata
## ALIAS metadata
GROUP Standard.Base.Metadata
Returns a Table describing this column's contents.

The table behaves like `Table.info` - it lists the column name, the count
Expand Down Expand Up @@ -2217,7 +2218,8 @@ type Column
take self range=(First 1) =
Index_Sub_Range_Module.take_helper self.length self.at self.slice (slice_ranges self) range

## GROUP Standard.Base.Selections
## ALIAS skip
GROUP Standard.Base.Selections
ICON select_row
Creates a new Column from the input with the specified range of rows
removed.
Expand Down
8 changes: 5 additions & 3 deletions distribution/lib/Standard/Table/0.0.0-dev/src/Data/Table.enso
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,8 @@ type Table
take self range=(First 1) =
Index_Sub_Range_Module.take_helper self.row_count self.rows.at self.slice (slice_ranges self) range

## GROUP Standard.Base.Selections
## ALIAS skip
GROUP Standard.Base.Selections
ICON select_row
Creates a new Table from the input with the specified range of rows
removed.
Expand Down Expand Up @@ -1822,7 +1823,7 @@ type Table
self.java_table.join right.java_table java_conditions join_kind.to_java (columns_to_keep.at 0) (columns_to_keep.at 1) right_columns_to_drop right_prefix java_aggregator
Table.Value new_java_table

## ALIAS cartesian join
## ALIAS cartesian join, append
GROUP Standard.Base.Calculations
ICON join
Joins tables by pairing every row of the left table with every row of the
Expand Down Expand Up @@ -2193,7 +2194,8 @@ type Table
Problem_Behavior.Report_Warning.attach_problem_after truncated <|
Not_All_Rows_Downloaded.Warning max_rows

## GROUP Standard.Base.Metadata
## ALIAS metadata
GROUP Standard.Base.Metadata
Returns a Table describing this table's contents.

The table lists all columns, counts of non-null items and value types of
Expand Down

0 comments on commit ef7b11f

Please sign in to comment.